1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
3 .\" %%%LICENSE_START(GPLv2+_ONEPARA)
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
10 .\" References consulted:
11 .\" GNU glibc-2 source code and manual
12 .\" Dinkumware C library reference http://www.dinkumware.com/
13 .\" OpenGroup's Single UNIX specification
14 .\" http://www.UNIX-systems.org/online.html
17 .TH GETWCHAR 3 1999-07-25 "GNU" "Linux Programmer's Manual"
19 getwchar \- read a wide character from standard input
24 .B "wint_t getwchar(void);"
29 function is the wide-character equivalent of the
32 It reads a wide character from \fIstdin\fP and returns
34 If the end of stream is reached, or if \fIferror(stdin)\fP becomes
37 If a wide-character conversion error occurs, it sets
38 \fIerrno\fP to \fBEILSEQ\fP and returns
41 For a nonlocking counterpart, see
42 .BR unlocked_stdio (3).
46 function returns the next wide-character from
59 It is reasonable to expect that
62 read a multibyte sequence from standard input and then
63 convert it to a wide character.
66 .BR unlocked_stdio (3)