Everything

vfscanf


Inputs data from a stream input/output file and converts it according to a format.

[Format]

#include <stdarg.h>

#include <stdio.h>

long vfscanf(FILE *restrict fp, const char *restrict control, va_list arg);

[Parameters]

fp File pointer

control Pointer to wide string indicating format

arg Parameter list

[Return values]

Normal: Number of data items successfully input and converted

Abnormal: Input data ends before input data conversion is performed: EOF

[Remarks]

The vfscanf function is equivalent to fscanf with arg specified instead of the variable parameter list.

Initialize arg through the va_start macro before calling the vfscanf function.

The vfscanf function does not call the va_end macro.