Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ putws(3W) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ferror(3S)

fopen(3S)

fread(3S)

printf(3S)

stdio(3S)

mbchar(3W)

printf(3W)

putwc(3W)

widec(3W)

putws(3W)                      27 Jan 1992                        putws(3W)

NAME
     putws, fputws - put a wchart string on a stream

SYNOPSIS
     #include <stdio.h>
     #include <widec.h>
     int putws(const wchart *s);
     int fputws(const wchart *s, FILE *stream);

DESCRIPTION (International Functions)
     putws() transforms the wchart null-terminated wchart string pointed
     to by s into a byte string in EUC, and writes the string followed by a
     new-line character to stdout.

     fputws() transforms the wchart null-terminated wchart 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 wchart null character.

DIAGNOSTICS
     On success both functions return the number of wchart characters
     transformed and written (including the new-line character in the case
     of putws()); Otherwise they return EOF.

NOTES
     putws() appends a new-line character while fputws() does not.

     These functions can support either typedef unsigned short wchart or
     typedef long wchart conditionally, see mbchar(3W).

SEE ALSO
     ferror(3S), fopen(3S), fread(3S), printf(3S), stdio(3S), mbchar(3W),
     printf(3W), putwc(3W), widec(3W).





















Page 1                       Reliant UNIX 5.44                      1, 1927

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026