wprintf()

Updated: April 19, 2023

Write formatted output to stdout

Synopsis:

#include <wchar.h>

int wprintf( const wchar_t* format, 
             ... );

Arguments:

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().

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The wprintf() function writes output to the stdout stream, under control of the argument format. It's the wide-character version of printf().

Returns:

The number of characters written, or a negative value if an output error occurred (errno is set).

Classification:

ANSI, POSIX 1003.1

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