1GETWCHAR(3) Linux Programmer's Manual GETWCHAR(3)
2
3
4
6 getwchar - read a wide character from standard input
7
9 #include <wchar.h>
10
11 wint_t getwchar(void);
12
14 The getwchar() function is the wide-character equivalent of the
15 getchar(3) function. It reads a wide character from stdin and returns
16 it. If the end of stream is reached, or if ferror(stdin) becomes true,
17 it returns WEOF. If a wide-character conversion error occurs, it sets
18 errno to EILSEQ and returns WEOF.
19
20 For a non-locking counterpart, see unlocked_stdio(3).
21
23 The getwchar() function returns the next wide-character from standard
24 input, or WEOF.
25
27 C99.
28
30 The behavior of getwchar() depends on the LC_CTYPE category of the cur‐
31 rent locale.
32
33 It is reasonable to expect that getwchar() will actually read a multi‐
34 byte sequence from standard input and then convert it to a wide charac‐
35 ter.
36
38 fgetwc(3), unlocked_stdio(3)
39
41 This page is part of release 3.22 of the Linux man-pages project. A
42 description of the project, and information about reporting bugs, can
43 be found at http://www.kernel.org/doc/man-pages/.
44
45
46
47GNU 1999-07-25 GETWCHAR(3)