Writes a wide character to a file
#include <stdio.h> #include <wchar.h> wint_t putwc ( wchar_t c , FILE *fp );
The function or macro putwc( ) is similar to the function fputwc( ). It writes one character to the current file position of the specified FILE pointer. The return value is the character written, or WEOF if an error occurred.
Because putwc( ) may be implemented as a macro, it might evaluate its argument more than once. Make sure the argument is not an expression with side effectsor else use fputwc( ).