[Previous] [Contents] [Index] [Next]

vfwscanf()

Scan input from a file

Synopsis:

#include <wchar.h>
#include <stdarg.h>

int vfwscanf( FILE * fp,
              const wchar_t *format,
              va_list arg );

Library:

libc

Description:

The vfwscanf() function scans input from the file designated by fp, under control of the argument format.

The vfwscanf() function is equivalent to fwscanf(), with a variable argument list replaced with arg, which has been initialized using the va_start() macro.

For details about the format string, see scanf(). The vfwscanf() function is the wide-character version of vfscanf().

Returns:

EOF
Failure; the scanning stopped by reaching the end of the input stream before storing any values.
x
Success; the number of input arguments for which values were successfully scanned and stored.

Classification:

ANSI

Safety:
Cancellation point Yes
Interrupt handler No
Signal handler No
Thread Yes

See also:

errno, fwscanf(), scanf(), swscanf(), va_arg(), va_end(), va_start(), vswscanf(), wscanf()


[Previous] [Contents] [Index] [Next]