Haven't needed to ask for help in a while, but I'm stuck with 1 line of SSCANF.
Basically, I've got a dialog in the format of:
1) Text here (RadioID should be = 1)
2) More text here (RadioID should be = 2)
3) Even more here (RadioID should be = 3)
55) more and more (RadioID should be = 55)
I am trying to split the number at the beginning, and put it in the variable 'RadioID'.
With the above code, The 'RadioID' shows as 0. It doesn't work.
What am I doing wrong? (I've never really understood what all the sscanf <|> etc means, so thought it'd be best to ask.)
Thanks! will +rep
Code:
new RadioID, bracket[1]; //MySQL Radio ID
sscanf(inputtext, "ds[1]", RadioID, bracket);
1) Text here (RadioID should be = 1)
2) More text here (RadioID should be = 2)
3) Even more here (RadioID should be = 3)
55) more and more (RadioID should be = 55)
I am trying to split the number at the beginning, and put it in the variable 'RadioID'.
With the above code, The 'RadioID' shows as 0. It doesn't work.
What am I doing wrong? (I've never really understood what all the sscanf <|> etc means, so thought it'd be best to ask.)
Thanks! will +rep