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

Name

putws, fputws - convert a string of Process Code characters to EUC characters and put it on a stream

Synopsis

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


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

int putws(wchar_t *s);

int fputws(wchar_t *s, FILE *stream);

MT-Level

MT-Safe

Description

putws() converts the Process Code string (terminated by a (wchar_t)NULL ) pointed to by s, to an Extended Unix Code (EUC) string followed by a NEWLINE character, and writes it to the standard output stream stdout.

fputws() writes the (wchar_t)NULL -terminated string pointed to by s to the named output stream, and does not append a NEWLINE.

Neither function writes the terminal NULL character.

Return Values

Both routines return the number of Process Code characters transformed and written. Both routines return EOF on error. This will happen if the routines try to write on a file that has not been opened for writing.

See Also

ferror(3S) , fopen(3S) , fread(3S) , getws(3I) , printf(3S) , putwc(3I)


Table of Contents