i have a string "success=1&u=0& name=bint&u=1&n ame=lucy&u=2&na me=barry" etc
i can use sscanf(string," success=%d", &d) to get the success value. but
after that i just want to read name and u pairs until there are no more. if
Iwere to do a
sscanf (string,"succes s=%d&u=%d&name= %s"), that would get me the values of
the first u/name, right? is there any way to retrieve the string pointer
position from sscanf so that I can just call it again from that point in the
string?
thanks
B
i can use sscanf(string," success=%d", &d) to get the success value. but
after that i just want to read name and u pairs until there are no more. if
Iwere to do a
sscanf (string,"succes s=%d&u=%d&name= %s"), that would get me the values of
the first u/name, right? is there any way to retrieve the string pointer
position from sscanf so that I can just call it again from that point in the
string?
thanks
B
Comment