Quote:
Originally Posted by atomen
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(string, data1, 32, data2, 32);
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)
__________________