Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

vsscanf - Formatted read from a file

&pagelevel(4)&pagelevel

Definition   

#include <stdarg.h>
#include <stdio.h>

int vsscanf(char *s, const char *format, va_list ap);

vsscanf corresponds to the functions sscanf, except that instead of being called with a variable number of arguments, it is called with an argument list as defined by stdarg.h. The number of arguments in the argument list and their types are not known at the time of compilation.

Return val.

See sscanf.

Notes

The function always starts with the first argument in the variable argument list. It is possible to start output from any particular argument by issuing the appropriate number of va_arg calls before calling the scan-function. Each va_arg call advances the position in the argument list by one argument.

Since vsscanf invokes the va_arg macro, but not the va_end macro, the value of ap after the return is indeterminate.

For more notes see sscanf.

See also

sscanf, vfscanf, vscanf, stdarg.h