[SOLVED]Extractstr stock
Hi. I've maded a stock, but is not working as i expected...is not like "strtok" or something else... E.g i have a string...
Code:
static String[] = "wow | my stock | is working. :D";Code:
stock extractstr(Source[], Char1, Char2, RetString[128])Code:
public Test(id)Thanks. |
Re: Extractstr stock
Don't quite have time to read all that, but is it anything like this stock?
Code:
(From pixie_stocks, naturally) EDIT: OK, similar but not quite the same. Can't see the problem with yours ... does this work? Code:
|
Re: Extractstr stock
Did a fx() for you :)
Should be even much more faster. Code:
Oh btw .. it's also returning a length of the result. Just for a case. |
Re: Extractstr stock
Looks like it should work.
Still haven't tested mine, or tried to fix Alka's EDIT: Although neither of ours will work where source=output, which Alka's does. |
Re: Extractstr stock
new TempString[128], temp[2], String[128] = "wow | my stock | is working. :D"
strtok(String, temp, 1, String, 127, '|', 1) strtok(String, TempString, 127, temp, 127, '|', 1) |
Re: Extractstr stock
@purple_pixie - i think your stock "str_piece" stock will work too...thanks for other one. ;P
@alien - thanks. @Black Rose - thanks. I will try those things :p EDIT:purple_pixie's works fine. :d thanks. |
| All times are GMT -4. The time now is 11:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.