1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
3 .\" This is free documentation; you can redistribute it and/or
4 .\" modify it under the terms of the GNU General Public License as
5 .\" published by the Free Software Foundation; either version 2 of
6 .\" the License, or (at your option) any later version.
8 .\" References consulted:
9 .\" GNU glibc-2 source code and manual
10 .\" Dinkumware C library reference http://www.dinkumware.com/
11 .\" OpenGroup's Single Unix specification
12 .\" http://www.UNIX-systems.org/online.html
15 .TH GETWCHAR 3 1999-07-25 "GNU" "Linux Programmer's Manual"
17 getwchar \- read a wide character from standard input
22 .BI "wint_t getwchar(void);"
27 function is the wide-character equivalent of the
30 It reads a wide character from \fIstdin\fP and returns
32 If the end of stream is reached, or if \fIferror(stdin)\fP becomes
33 true, it returns WEOF.
34 If a wide-character conversion error occurs, it sets
35 \fIerrno\fP to \fBEILSEQ\fP and returns WEOF.
37 For a non-locking counterpart, see
38 .BR unlocked_stdio (3).
42 function returns the next wide-character from
43 standard input, or WEOF.
54 It is reasonable to expect that
57 read a multibyte sequence from standard input and then
58 convert it to a wide character.
61 .BR unlocked_stdio (3)