7.24.3.6 The getwc function

Synopsis

1

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

Description

2

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

Returns

3

The getwc function returns the next wide character from the input stream pointed to by stream, or WEOF.