Read data from a string according to a standard C format specification.
int sscanf( LPCSTR lpcszBuffer, LPCSTR lpcszFormat, ... )
Returns the number of data values which are returned in receptor variables.
EX1
void sscanf_ex1() { char str2[10], str1[]="Hello C 15 17.56"; char cChar; int iInt; float fFloat; int N; N = sscanf( str1, "%s %c %d %f", str2, &cChar, &iInt, &fFloat); out_str(str1); out_str(str2); printf("%c\n",cChar); out_int("",iInt); out_double("",fFloat); }
Read data from a string according to a standard C format specification and return data
values in a series of user specified receptor variables.
origin.h