Everything

vscanf


Inputs data from the specified storage area and converts it according to a format.

[Format]

#include <stdarg.h>

#include <stdio.h>

long vscanf(const char *restrict control, va_list arg);

[Parameters]

control Pointer to 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 vscanf function is equivalent to scanf with arg specified instead of the variable parameters.

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

The vscanf function does not call the va_end macro.