getwchar − read a wide character from standard input #include<wchar.h> wint_t getwchar(void); The function is the wide‐character equivalent of the function. It reads a wide character from stdin and returns it. If the end of stream is reached, or if ferror(stdin) becomes true, it returns If a wide‐character conversion error occurs, it sets errno to EILSEQ and returns For a nonlocking counterpart, see The function returns the next wide‐character from standard input, or For an explanation of the terms used in this section, see ┌──────────┬───────────────┬─────────┐ │Interface │ Attribute │ Value │ ├──────────┼───────────────┼─────────┤ │ │ Thread safety │ MT‐Safe │ └──────────┴───────────────┴─────────┘ POSIX.1‐2001, POSIX.1‐2008, C99. The behavior of depends on the LC_CTYPE category of the current locale. It is reasonable to expect that will actually read a multibyte sequence from standard input and then convert it to a wide character. This page is part of release 5.07 of the Linux man‐pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man−pages/.