vfscanf reads and formats character data to the file specified by stream, vscanf reads data from standard input, and vsscanf reads data from the memory pointed to by buffer.
#include <stdio.h> #include <stdarg.h>
int vfscanf(FILE *stream, const char *format, va_list argptr); int vscanf(const char *format, va_list argptr); int vsscanf(char *buffer, const char *format, va_list argptr);
int vfscanf_s(FILE *stream, const char *format, va_list argptr);
int vscanf_s(const char *format, va_list argptr);
int vsscanf_s(char *buffer, const char *format, va_list argptr);
#include <wchar.h> #include <stdarg.h>
int vfwscanf(FILE *stream, const wchar_t *format, va_list argptr); int vswcanf(const wchar_t *format, va_list argptr); int vswscanf(const wchar_t *buffer, const wchar_t *format, va_list argptr);
int vfwscanf_s(FILE *stream, const wchar_t *format, va_list argptr);
int vswcanf_s(const wchar_t *format, va_list argptr);
int vswscanf_s(const wchar_t *buffer, const wchar_t *format, va_list argptr);
stream
format
argptr
buffer
These functions are similar to their scanf function counterparts, but each accepts a pointer to a variable-argument list instead of additional arguments.
tchar.h routine |
_UNICODE not defined |
_UNICODE defined |
---|---|---|
_vftscanf | vfscanf | vfwscanf |
_vftscanf_s | vfscanf_s | vfwscanf_s |
_vtscanf | vscanf | vwscanf |
_vtscanf_s | vscanf_s | vwscanf_s |
_vstscanf | vsscanf | vswscanf |
_vstscanf_s | vsscanf_s | vswscanf_s |
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 INtime 6.0 (for wide_character and generic text versions) |
intime/rt/include/stdio.h intime/rt/include/wchar.h intime/rt/include/tchar.h |
stdio.h stdarg.h wchar.h tchar.h |
clib.lib |