putws(3W) putws(3W)
NAME
putws, fputws - put a wchar_t string on a stream
SYNOPSIS
#include <stdio.h>
#include <widec.h>
int putws(const wchar_t *s);
int fputws(const wchar_t *s, FILE *stream);
DESCRIPTION
putws transforms the wchar_t null-terminated wchar_t string
pointed to by s into a byte string in EUC, and writes the
string followed by a newline character to stdout.
fputws transforms the wchar_t null-terminated wchar_t string
pointed to by s into a byte string in EUC, and writes the
string to the named output stream.
Neither function writes the terminating wchar_t null
character.
Errors
On success, both functions return the number of wchar_t
characters transformed and written (not including the newline
character in the case of putws). Otherwise they return EOF.
REFERENCES
ferror(3S), fopen(3S), fprintf(3S), fread(3S), putwc(3S),
stdio(3S), widec(3S)
NOTICES
putws appends a newline character while fputws does not.
Copyright 1994 Novell, Inc. Page 1