[Previous] [Contents] [Index] [Next]

vfwprintf()

Write formatted output to a file

Synopsis:

#include <wchar.h>
#include <stdarg.h>

int vfwprintf( FILE * fp,
               const wchar_t * format,
               va_list arg );

Library:

libc

Description:

The vfwprintf() function writes output to the file pointed to by fp, under control of the argument format.

The vfwprintf() function is equivalent to the fwprintf() function, with the variable argument list replaced with arg, which has been initialized by the va_start() macro.

The format string is the same as the one used by printf(). The vfwprint() function is the wide-character version of vfprintf().

Returns:

<0
Failure; an error occurred and errno is set.
x
Success; the number of characters written, excluding the terminating NUL.

Classification:

ANSI

Safety:
Cancellation point No
Interrupt handler No
Signal handler No
Thread Yes

See also:

errno, fwprintf(), printf(), swprintf(), va_arg(), va_end(), va_start(), vwprintf(), vswprintf(), wprintf()


[Previous] [Contents] [Index] [Next]