Prints formatted data to a stream.
#include <stdio.h> int fprintf (FILE *stream, const char *format[, argument]...);
int fprintf_s(FILE *stream, const char *format[, argument]...);
#include <wchar.h>
int fwprintf(FILE *stream, const wchar_t *format[, argument]...);
int fwprintf_s(FILE *stream, const wchar_t *format[, argument]...);
stream
format
argument
The ordinary characters and escape sequences are copied to stream in order of their appearance.
The format and optional arguments have the same form and function as described in printf.
fwprintf
is a wide-character version of fprintf
; format
is a wide-character string. fwprintf
and fprintf
behave identically if the stream is opened in ANSI mode. fprintf
does not currently support output into a UNICODE stream.
fprintf_s
and fwprintf_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 |
---|---|---|
_ftprintf | fprintf | fwprintf |
_ftprintf_s | fprintf_s | fwprintf_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 wchar.h tchar.h |
clib.lib |