Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 163 -
------------------------------------------------------------------------------
6.11 Read formatted data from a stream
. <Main,Alarm,Comm>
------------------------------------------------------------------------------
[Name]
fscanf
[Syntax]
#include <stdio.h>
int fscanf( FILE *stream, const char *format [, argument]... ) ;
[Arguments]
stream Pointer to a FILE structure.
format Format control string.
argument Optional arguments.
[Return]
Returns a number of fields converted successfully. This does not
includes fields which has been read and not converted. Returns EOF
if any error is detected in a stream before the first conversion,
or the end of file is detected. Return value zero means that no
fields have been converted.
[Description]
Reads formatted data to arguments (if exist) from a stream.
"argument" are pointer to variables whose types are same as type
specification in "format". Formats of "format" are same as "scanf".
See "scanf" for details of "format" and "argument".