Scan input from a file (varargs)
#include <wchar.h> #include <stdarg.h> int vfwscanf( FILE * fp, const wchar_t *format, va_list arg );
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The vfwscanf() function scans input from the file designated by fp, under control of the argument format.
The vfwscanf() function is the wide-character version of vfscanf(), and is a “varargs” version of fwscanf().
|The vfwscanf() function is generally considered unsafe for string handling; it's safer to use fgetws() to get a line of input and then use vswscanf() to process the input.|
The number of input arguments for which values were successfully scanned and stored, or EOF if the scanning reached the end of the input stream before storing any values.
ANSI, POSIX 1003.1
errno, fscanf(), fwscanf(), scanf(), sscanf(), swscanf(), va_start(), vfscanf(), vscanf(), vsscanf(), vswscanf(), vwscanf(), wscanf()