Formatted input from a string.
int sscanf (char * string, char * format [, argument]...);
Required Header |
<stdio.h> |
Return Value
This function returns the number of fields processed.
Parameters
string
A pointer to the input string
format
Format control string
argument
Optional argument pointers to accept the results
Remarks
The sscanf function reads string based on the format string and converts the input into the data types described by the format string. See scanf for more information on the format string and accepted arguments.