putws(3I)
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);
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)
SunOS 5.1/SPARC — Last change: 28 Oct 1991