sscanf string splitting bug.
#1

So, i've been trying to split a string read from a file.
The string is: "-1;-1;-1;-1;-1" ..
And i did: sscanf(string, "p<;>a<i>[5]", array);
And it outputs into the array: "-1 0 0 0 0"..
What am I doing wrong?
Reply
#2

UPDATE: Also, switching the string to "1;2;3;4;5" produces "0 0 0 0 0".
Reply
#3

probably cause its isnt updated with 0.3x.. i noticed this too scanf isnt working for me
Reply
#4

UPDATE: Reinstalled plugin, still the same
Reply
#5

Is there perhaps another way (not using sscanf, maybe explode?)
Reply
#6

*shameless self-bump*
Reply
#7

show your include. I had a problem like this for a couple of days.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)