Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getwc(3S) — SunOS 5.6

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fgetwc(3S)

attributes(5)

getwc(3S)

NAME

getwc − get wide character from a stream

SYNOPSIS

#include <stdio.h>
#include <wchar.h>

wint_t getwc(FILE ∗stream);

DESCRIPTION

The getwc() function is equivalent to fgetwc(3S), except that if it is implemented as a macro it may evaluate stream more than once, so the argument should never be an expression with side effects. 

RETURN VALUES

Refer to fgetwc(3S). 

ERRORS

Refer to fgetwc(3S). 

USAGE

This interface is provided in order to align with some current implementations, and with possible future ISO standards. 

Because it may be implemented as a macro, getwc() may treat incorrectly a stream argument with side effects.  In particular, getwc(∗f++) may not work as expected.  Therefore, use of this function is not recommended; fgetwc(3S) should be used instead. 

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
MT-Level MT-Safe

SEE ALSO

fgetwc(3S), attributes(5)

SunOS 5.6  —  Last change: 22 Apr 1997

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