INtime SDK Help
vfscanf, vscanf, vsscanf (ANSI, stdio)

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);

Parameters

stream
Pointer to FILE structure.
format
Formatted string. This parameter has the same form and function as in scanf.
argptr
Pointer to list of arguments. This parameter has type va_list and points to a list of arguments to where input is converted and stored according to the corresponding format specifications in format.
buffer
Storage location for input.

Remarks

These functions are similar to their scanf function counterparts, but each accepts a pointer to a variable-argument list instead of additional arguments.

Return Values

The number of fields that were successfully converted, not including those which were read but not assigned.
Success.
EOF for an error or end-of-file on stream before the first conversion.
Failure.

Generic Text Routines

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

Requirements

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
   
See Also