techie
Advanced Member level 3
I have the following variables
int number;
char text[100];
I have a text string as follows
CMGL: 9,"REC READ","0137443256780",,149,8
I want to read the text
number = 9
text = 0137443256780 without the "" quotes
Will the following work,
sscanf(string,"CMGL:%u,\"%s\",,",&number,text);
or any other suggestions.
int number;
char text[100];
I have a text string as follows
CMGL: 9,"REC READ","0137443256780",,149,8
I want to read the text
number = 9
text = 0137443256780 without the "" quotes
Will the following work,
sscanf(string,"CMGL:%u,\"%s\",,",&number,text);
or any other suggestions.