Gets the next wide character from a stream.
#include <wchar.h> wint_t getwc ( struct _iobuf *fp);
(IN) Points to the file.
If successful, returns the next wide character, converted to a wint_t, from the input stream. Otherwise, if the stream is at end-of-file, returns EOF and sets the EOF indicator. If a read error occurs, returns EOF, sets the error indicator, and sets errno to one of the following:
The getwc function gets the next character from the file designated by fp. The character is returned as an wint_t value.