![]() |
![]() |
![]() |
![]() |
![]() |
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Write a wide character to a stdout
#include <wchar.h> wint_t putwchar( wchar_t wc );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The putwchar() function writes the wide character wc, cast as (wint_t)(wchar_t), to the stdout stream. It's equivalent to:
fputwc( wc, stdout );
The wide character written, cast as (wint_t)(wchar_t) or WEOF if an error occurs (errno is set).
![]() |
If wc exceeds the valid wide-character range, the value returned is the wide character written, not wc. |
Safety: | |
---|---|
Cancellation point | Yes |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |
"Stream I/O functions" and "Wide-character functions" in the summary of functions chapter.
![]() |
![]() |
![]() |
![]() |