06.01.2012, 11:03
You should read the sscanf thread, it tells you what each specifier does...
p is to specify a deliminator, when it finds that character you specified, it will move onto the next parameter.
I'm not too good at explaining things, but I will try.
p is to specify a deliminator, when it finds that character you specified, it will move onto the next parameter.
I'm not too good at explaining things, but I will try.
Код:
// Example // string is formatted as followed: "13|92.0|hello" // sscanf will split the string into the parameters, using the deliminator '|'. // pinteger = 13, pfloat = 92.0, pstr = "hello". sscanf(string, "p<|>dfs[128]", pinteger, pfloat, pstr);