|
|
#include <stdio.h>int fscanf(FILE *stream, const char *format, ...);
The fscanf( ) function works exactly like the scanf( ) function, except that it reads the information from the stream specified by stream instead of stdin. See scanf( ).
In C99, stream and format are qualified by restrict.
The fscanf( ) function returns the number of arguments actually assigned values. This number does not include skipped fields. A return value of EOF means that a failure occurred before the first assignment was made.
Related functions are scanf( ) and fprintf( ).
|
|