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, vscanf, vsscanf - formatted read from variable argument list
&pagelevel(4)&pagelevel
Syntax | #include <stdarg.h> #include <stdio.h> int vfscanf(FILE *stream, const char *format, va_list ap); int vscanf(const char *format, va_list ap); int vsscanf(char *s, const char *format, va_list ap); |
Description | vfscanf() , vscanf() and vsscanf() correspond to the functions fscanf() , scanf() and sscanf() , respectively, except that instead of being called with a variable number of arguments, they are 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 the vscan functions invoke the va_arg macro, but not the va_end macro, the value of ap after the return is indeterminate. |
Return val. | See fscanf() . |
Errors | See fscanf() . |
Notes | The macro va_end( ap) should be called after using these functions in order to reset the pointer ap to a defined value so that any subsequent calls to these functions will have the correct initial values. The functions 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. For more notes see fscanf() . |
See also | fscanf() , stdarg.h , stdio.h , varargs.h .
|