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(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 nonlocking 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 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

SEE ALSO

38       fgetwc(3), unlocked_stdio(3)
39

COLOPHON

41       This  page  is  part of release 3.25 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)
Impressum