putwc(3S)                                                            putwc(3S)


NAME
     putwc, putwchar, fputwc - put wchar_t character on a stream

SYNOPSIS
     #include <stdio.h>
     #include <widec.h>
     int putwc(wchar_t c, FILE *stream);

     int putwchar(wchar_t c);
     int fputwc(wchar_t c, FILE *stream);

DESCRIPTION (International Functions)
     putwc transforms the wchar_t character c into EUC, and writes it to the
     output stream (at the position where the file pointer, if defined, is
     pointing).  The putwchar(c) is defined as putwc(c, stdout).  putwc and
     putwchar are macros.

     fputwc behaves like putwc, but is a function rather than a macro.

SEE ALSO
     fclose(3S), ferror(3S), fopen(3S), fread(3S), printf(3S), setbuf(3S),
     stdio(3S), putws(3S), widec(3S).

DIAGNOSTICS
     On success, these functions return the value they have written.  On
     failure, they return the constant EOF.


                                                                        Page 1