1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
3 .\" SPDX-License-Identifier: GPL-2.0-or-later
5 .\" References consulted:
6 .\" GNU glibc-2 source code and manual
7 .\" Dinkumware C library reference http://www.dinkumware.com/
8 .\" OpenGroup's Single UNIX specification
9 .\" http://www.UNIX-systems.org/online.html
12 .TH GETWCHAR 3 2021-03-22 "Linux man-pages (unreleased)"
14 getwchar \- read a wide character from standard input
17 .RI ( libc ", " \-lc )
22 .B "wint_t getwchar(void);"
27 function is the wide-character equivalent of the
30 It reads a wide character from
34 If the end of stream is reached, or if
36 becomes true, it returns
38 If a wide-character conversion error occurs, it sets
45 For a nonlocking counterpart, see
46 .BR unlocked_stdio (3).
50 function returns the next wide-character from
54 For an explanation of the terms used in this section, see
62 Interface Attribute Value
65 T} Thread safety MT-Safe
71 POSIX.1-2001, POSIX.1-2008, C99.
80 It is reasonable to expect that
83 read a multibyte sequence from standard input and then
84 convert it to a wide character.
87 .BR unlocked_stdio (3)