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 Functionsgetwc(3C)


NAME

 getwc - get wide character from a stream

SYNOPSIS

 
#include <stdio.h>
#include <wchar.h>
wint_t getwc(FILE *stream);

DESCRIPTION

 

The getwc() function is equivalent to fgetwc(3C), except that if it is implemented as a macro it may evaluate stream more than once, so the argument should never be an expression with side effects.

RETURN VALUES

 

Refer to fgetwc(3C).

ERRORS

 

Refer to fgetwc(3C).

USAGE

 

This interface is provided to align with some current implementations and with possible future ISO standards.

Because it may be implemented as a macro, getwc() may treat incorrectly a stream argument with side effects. In particular, getwc(*f++) may not work as expected. Therefore, use of this function is not recommended; fgetwc(3C) should be used instead.

ATTRIBUTES

 

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

ATTRIBUTE TYPEATTRIBUTE VALUE
MT-LevelMT-Safe

SEE ALSO

 

fgetwc(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.