Operating systems, development tools, and professional services
for connected embedded systems
for connected embedded systems
![]() |
![]() |
![]() |
![]() |
vfwprintf()
Write formatted wide-character output to a file (varargs)
Synopsis:
#include <wchar.h>
#include <stdarg.h>
int vfwprintf( FILE * fp,
const wchar_t * format,
va_list arg );
Arguments:
- fp
- The stream to which you want to send the output.
- format
- A wide-character string that specifies the format of the output. The formatting string determines what additional arguments you need to provide. For more information, see printf().
- arg
- A variable-argument list of the additional arguments, which you must have initialized with the va_start() macro.
Library:
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
Description:
The vfwprintf() function writes output to the file pointed to by fp, under control of the argument format.
The vfwprint() function is the wide-character version of vfprintf(), and is a "varargs" version of fwprintf().
Returns:
The number of wide characters written, excluding the terminating NUL, or a negative number if an error occurred (errno is set).
Classification:
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |
See also:
errno, fprintf(), fwprintf(), printf(), snprintf(), sprintf(), swprintf(), va_start(), vfprintf(), vprintf(), vsnprintf(), vsprintf(), vswprintf(), vwprintf(), wprintf()
![]() |
![]() |
![]() |
![]() |

![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)