Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fclose(3S)

ferror(3S)

fopen(3S)

fread(3S)

getwc(3I)

printf(3S)

putc(3S)

putws(3I)

setbuf(3S)

stdio(3S)

putwc(3I)

NAME

putwc, putwchar, fputwc − convert Process Code character to EUC and put on a stream

SYNOPSIS

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

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

wchar_t putwc(int c, FILE ∗stream);

wchar_t putwchar(int c);

wchar_t fputwc(int c, FILE ∗stream);

DESCRIPTION

putwc() and fputwc() convert the Process Code (wchar_t) character c to Extended Unix Code (EUC) and write it onto the named output stream (at the position where the file pointer, if defined, is pointing).  It returns the character written. 

putwchar(c) is defined as fputwc(c,stdout).  putwc() and putwchar() are macros. 

See stdio(3S) for a discussion of output streams. 

RETURN VALUES

On success, these functions each return the value passed.  On error, these functions return the constant EOF. 

SEE ALSO

fclose(3S), ferror(3S), fopen(3S), fread(3S), getwc(3I), printf(3S), putc(3S), putws(3I), setbuf(3S), stdio(3S)

SunOS 5.1/SPARC  —  Last change: 28 Oct 1991

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