1getwchar(3C) Standard C Library Functions getwchar(3C)
2
3
4
6 getwchar - get wide character from stdin stream
7
9 #include <wchar.h>
10
11 wint_t getwchar(void)
12
13
15 The getwchar() function is equivalent to getwc(stdin).
16
18 Refer to fgetwc(3C).
19
21 Refer to fgetwc(3C).
22
24 If the wint_t value returned by getwchar() is stored into a variable of
25 type wchar_t and then compared against the wint_t macro WEOF, the com‐
26 parison may never succeed because wchar_t is defined as unsigned.
27
29 See attributes(5) for descriptions of the following attributes:
30
31
32
33
34 ┌─────────────────────────────┬─────────────────────────────┐
35 │ATTRIBUTE TYPE │ATTRIBUTE VALUE │
36 ├─────────────────────────────┼─────────────────────────────┤
37 │Interface Stability │Standard │
38 ├─────────────────────────────┼─────────────────────────────┤
39 │MT-Level │MT-Safe │
40 └─────────────────────────────┴─────────────────────────────┘
41
43 fgetwc(3C), getwc(3C), attributes(5), standards(5)
44
45
46
47SunOS 5.11 24 Jul 2002 getwchar(3C)