2 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
4 .\" SPDX-License-Identifier: GPL-2.0-or-later
6 .\" References consulted:
7 .\" GNU glibc-2 source code and manual
8 .\" Dinkumware C library reference http://www.dinkumware.com/
9 .\" OpenGroup's Single UNIX specification
10 .\" http://www.UNIX-systems.org/online.html
13 .TH getwchar 3 (date) "Linux man-pages (unreleased)"
15 getwchar \- read a wide character from standard input
18 .RI ( libc ", " \-lc )
23 .B "wint_t getwchar(void);"
28 function is the wide-character equivalent of the
31 It reads a wide character from
35 If the end of stream is reached, or if
37 becomes true, it returns
39 If a wide-character conversion error occurs, it sets
46 For a nonlocking counterpart, see
47 .BR unlocked_stdio (3).
51 function returns the next wide-character from
55 For an explanation of the terms used in this section, see
61 Interface Attribute Value
66 T} Thread safety MT-Safe
81 It is reasonable to expect that
84 read a multibyte sequence from standard input and then
85 convert it to a wide character.
88 .BR unlocked_stdio (3)