Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

vscanf - formatted read from standard input

&pagelevel(4)&pagelevel

Definition   

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

int vscanf(const char *format, va_list ap);

vscanf corresponds to the functions scanf, 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 scanf.

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 vscanf invokes the va_arg macro, but not the va_end macro, the value of ap after the return is indeterminate.

For more notes see scanf.

See also

scanf, vfscanf, vsscanf, stdarg.h