HP-UX Reference (11i v2 03/08) - 3 Library Functions A-M (vol 6)

g
getwc(3C) getwc(3C)
[EILSEQ] The data obtained from the input stream does not form a valid wide character.
Additional
errno values may be set by the underlying
read() function (see read(2)).
EXTERNAL INFLUENCES
Locale
The
LC_CTYPE category determines how wide-character conversions are done.
International Code Set Support
Single- and multibyte character code sets are supported.
WARNINGS
If the value returned by
getwc(), getwchar()
, fgetwc(),orfgetwc_unlocked()
is stored into
a type
wchar_t variable then compared against the constant
WEOF, the comparison may never succeed
because extension of a
wchar_t to a wint_t
is machine-dependent.
getwc_unlocked()
, getwchar_unlocked()
and fgetwc_unlocked()
are obsolescent inter-
faces supported only for compatibility with existing DCE applications. New multithreaded applications
should use
getwc(), getwchar() and fgetwc()
.
AUTHOR
getwc() was developed by OSF and HP.
SEE ALSO
fclose(3S), ferror(3S), flockfile(3S), fopen(3S), fread(3S), fgetws(3C), orientation(5), putwc(3C), read(2),
scanf(3S), orientation(5), thread_safety(5).
STANDARDS CONFORMANCE
getwc(): XPG4
fgetwc(): XPG4
getwchar(): XPG4
Section 3438 Hewlett-Packard Company 2 HP-UX 11i Version 2: August 2003