Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fputws(3W) — svr4 — mips UMIPS RISC/os 5.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

printf(3W)

putwc(3W)

widec(3W)

ferror(3S)

fopen(3S)

fread(3S)

printf(3S)

stdio(3S)



PUTWS(3W-SVR4)      RISC/os Reference Manual       PUTWS(3W-SVR4)



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

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

     int putws(const wchart *s);
     int fputws(const wchart *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 new-line 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 charac-
     ter.

DIAGNOSTICS
     On success both functions return the number of wchar_t char-
     acters transformed and written (not 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.

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




















                        Printed 11/19/92                   Page 1



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