vfwscanf
![]() |
![]() |
![]() |
![]() |
vfwscanf()
Scan input from a file (varargs)
Synopsis:
#include <wchar.h>
#include <stdarg.h>
int vfwscanf( FILE * fp,
const wchar_t *format,
va_list arg );
Arguments:
- fp
- The stream that you want to read from.
- format
- A wide-character string that specifies the format of the input. For more information, see scanf(). The formatting string determines what additional arguments you need to provide.
- arg
- A variable-argument list of the additional arguments, which you must have initialized with the va_start() macro.
Library:
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
Description:
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().
Returns:
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.
Classification:
| Safety: | |
|---|---|
| Cancellation point | Yes |
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |
See also:
errno, fscanf(), fwscanf(), scanf(), sscanf(), swscanf(), va_start(), vfscanf(), vscanf(), vsscanf(), vswscanf(), vwscanf(), wscanf()
![]() |
![]() |
![]() |
![]() |

![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)
