C examples for wchar.h:putwchar
function
<cwchar> <wchar.h>
wint_t putwchar (wchar_t wc);
Write wide character to stdout
Parameter | Description |
---|---|
wc | The wide character to be written. |
On success, the character written is returned.
On error, it returns WEOF, which indicates failure.
#include <wchar.h> int main ()// w w w . j a v a2 s . co m { wchar_t wc; for (wc = 'A' ; wc <= 'Z' ; ++wc) putwchar (wc); return 0; }