1GETWCHAR(3)                Linux Programmer's Manual               GETWCHAR(3)
2
3
4

NAME

6       getwchar - read a wide character from standard input
7

SYNOPSIS

9       #include <wchar.h>
10
11       wint_t getwchar(void);
12

DESCRIPTION

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

RETURN VALUE

23       The  getwchar()  function returns the next wide-character from standard
24       input, or WEOF.
25

CONFORMING TO

27       C99
28

NOTES

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

SEE ALSO

38       fgetwc(3), unlocked_stdio(3)
39
40
41
42GNU                               1999-07-25                       GETWCHAR(3)
Impressum