Everything

putwc


Outputs one wide character to a stream input/output file.

[Format]

#include <stdio.h>

#include <wchar.h>

wint_t putwc(wchar_t c, FILE *fp);

[Parameters]

c Wide character to be output

fp File pointer

[Return values]

Normal: Output wide character

Abnormal: WEOF

[Remarks]

When a write error occurs, the error indicator for that file is set.

The putwc function is equivalent to fputwc, but putwc may evaluate fp two or more times because it is implemented as a macro. Accordingly, specify an expression without side effects for fp.