Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Standard C Library Functionsgetwchar(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 TYPEATTRIBUTE VALUE
MT-LevelMT-Safe

SEE ALSO

 

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


SunOS 5.9Go To TopLast Changed 22 Apr 1997

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.