1getwchar(3C)             Standard C Library Functions             getwchar(3C)
2
3
4

NAME

6       getwchar - get wide character from stdin stream
7

SYNOPSIS

9       #include <wchar.h>
10
11       wint_t getwchar(void)
12
13

DESCRIPTION

15       The getwchar() function is equivalent to getwc(stdin).
16

RETURN VALUES

18       Refer to fgetwc(3C).
19

ERRORS

21       Refer to fgetwc(3C).
22

USAGE

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

ATTRIBUTES

29       See attributes(5) for descriptions of the following attributes:
30
31
32
33
34       ┌─────────────────────────────┬─────────────────────────────┐
35ATTRIBUTE TYPE               ATTRIBUTE VALUE              
36       ├─────────────────────────────┼─────────────────────────────┤
37       │Interface Stability          │Standard                     │
38       ├─────────────────────────────┼─────────────────────────────┤
39       │MT-Level                     │MT-Safe                      │
40       └─────────────────────────────┴─────────────────────────────┘
41

SEE ALSO

43       fgetwc(3C), getwc(3C), attributes(5), standards(5)
44
45
46
47SunOS 5.11                        24 Jul 2002                     getwchar(3C)
Impressum