Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

vfscanf - Formatted read from a file

&pagelevel(4)&pagelevel

Definition   

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

int vfscanf(FILE *stream, const char *format, va_list ap);

vfscanf corresponds to the function fscanf, 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.

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

Return val.

See fscanf.

Notes

vfscanf 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 function vfscanf. Each va_arg call advances the position in the argument list by one argument.

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

For more notes see fscanf.

See also

fscanf, vscanf, vsscanf, stdarg.h