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() 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 behaviour of getwchar() depends on the LC_CTYPE category of the
31 current 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
40
41
42GNU 1999-07-25 GETWCHAR(3)