GETWC(3) Library Functions Manual GETWC(3)

getwcget a wide character from a stream

#include <stdio.h>
#include <wchar.h>

wint_t getwc(FILE *stream);

The getwc() function is equivalent to fgetwc(3) , 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.

Refer to fgetwc(3) .

Refer to fgetwc(3) .

None.

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

None.

fgetwc(3) , <stdio.h> , <wchar.h> .

Derived from the MSE working draft.

February 1997 posix.fail