man pages section 3: Basic Library Functions

Exit Print View

Updated: July 2014
 
 

getwchar(3C)

Name

getwchar - get wide character from stdin stream

Synopsis

#include <wchar.h> 

wint_t getwchar(void)

Description

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

Return Values

Refer to fgetwc(3C).

Errors

Refer to fgetwc(3C).

Usage

If the wint_t value returned by getwchar() is stored into a variable of type wchar_t and then compared against the wint_t macro WEOF, the comparison may never succeed because wchar_t is defined as unsigned.

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Standard
MT-Level
MT-Safe

See Also

fgetwc(3C), getwc(3C), attributes(5), standards(5)