Formats and sends data to a stream.
#include <stdio.h> #include <stdarg.h> int vfprintf(FILE *stream, const char *format, va_list ap); int vfprintf_s(FILE *stream, const char *format, va_list ap); #include <wchar.h> #include <stdarg.h> int vfwprintf(FILE *stream, const char *format, va_list ap); int vfwprintf_s(FILE *stream, const char *format, va_list ap);
stream
format
ap
These functions are similar to their counterparts fprintf and fwprintf, but each accepts a pointer to a variable-argument list instead of additional arguments.
vfwprintf
is a wide-character version of vfprintf
; format
is a wide-character string. vfwprintf
and vfprintf
behave identically if the stream is opened in ANSI mode. vprintf
does not currently support output into a UNICODE stream.
vfprintf_s
and vfwprintf_s
perform parameter validation. If format
is NULL then the function returns -1 and errno
is set to EINVAL.
tchar.h routine |
_UNICODE not defined |
_UNICODE defined |
---|---|---|
_vftprintf | vfprintf | vfwprintf |
_vftprintf_s | vfprintf_s | vfwprintf_s |
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 INtime 6.0 (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 |