Raised This Month: $ Target: $400
 0% 

first argument of the string


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Nepopus
Member
Join Date: Jun 2008
Location: Russia/Moscow
Old 07-20-2008 , 13:59   Re: first argument of the string
Reply With Quote #3

Quote:
Originally Posted by atomen View Post
How to know how long the string is without parsing each word is probably impossible.
But I would do it this way :
PHP Code:
new const string[] = "This-is-data-1 And-this-is-data2 this-isnt-parsed(3rd-word)";

static 
data1[33], data2[33];
parse(stringdata132data232);

new 
len1 sizeof(data1) - 1;
new 
len2 sizeof(data2) - 1
huh i thought this fills data for a maximum of length characters, thanks
+ karma
P.S. then i need strbreak(string, data1, 32, data2, 32)
__________________
hi maaaaaan
my server here soon
Nepopus is offline
Send a message via ICQ to Nepopus Send a message via Skype™ to Nepopus
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode