Formatted stream input.
int fscanf (FILE * stream, char * format [, argument]...);
Required Header |
<stdio.h> |
Return Value
This function returns the number of fields processed. EOF is returned if the first character attempted to be read resulted in an error or the End Of File.
Parameters
stream
A pointer to the open FILE structure
format
Format control string
argument
Optional argument pointers to accept the results
Remarks
The fscanf function reads stream based on the format string and converts the input into the data types described by the string. See scanf for more information on the format string and accepted arguments.