Everything

vsscanf


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

[Format]

#include <stdarg.h>

#include <stdio.h>

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

[Parameters]

s Storage area containing data to be input

control Pointer to string indicating format

arg Parameter list

[Return values]

Normal: Number of data items successfully input and converted

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

[Remarks]

The vsscanf function is equivalent to sscanf with arg specified instead of the variable parameters.

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

The vsscanf function does not call the va_end macro.