Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

putwc - put wide character on stream

&pagelevel(4)&pagelevel

Syntax

#include <wchar.h>

Optional
#include <stdio.h> (End)

wint_t putwc(wint_t wc, FILE *stream);

Description

putwc() is equivalent to the fputwc() function, except that if it is implemented as a macro it may evaluate stream more than once, so the stream argument should never be an
expression with side-effects.

Restriction
This version of the C runtime system only supports 1-byte characters as wide character codes. They are of type wchar_t (see stddef.h). (End)

Return val.

See fputwc().

Errors

See fputwc().

Notes

putwc(wc, *f++) may not work as expected. Therefore, use of this function is not recommended; fputwc() should be used instead.

See also

putwc(), stdio.h, wchar.h.