[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    putwc(3I) manual page Table of Contents

Name

putwc, putwchar, fputwc - convert Process Code character to EUC and put on a stream

Synopsis

cc [ flag ... ] file ... -lw [ library ... ]


#include <stdio.h>
#include <widec.h>

wchar_t putwc(int c, FILE *stream);

wchar_t putwchar(int c);

wchar_t fputwc(int c, FILE *stream);

MT-Level

MT-Safe

Description

putwc() and fputwc() convert the Process Code (wchar_t) character c to Extended Unix Code (EUC) and write it onto the named output stream (at the position where the file pointer, if defined, is pointing). It returns the character written.

putwchar(c) is defined as fputwc(c,stdout). putwc() and putwchar() are macros.

See stdio(3S) for a discussion of output streams.

Return Values

On success, these functions each return the value passed. On error, these functions return the constant EOF .

See Also

fclose(3S) , ferror(3S) , fopen(3S) , fread(3S) , getwc(3I) , printf(3S) , putc(3S) , putws(3I) , setbuf(3S) , stdio(3S)


Table of Contents