Returns the next wide-character code from the input stream.
#include <wchar.h>
wint_t fgetwc (
struct _iobuf *fp);
(IN) Points to the file.
If successful, returns the next wide-character code, converted to type wint_t, from the input stream pointed to by fp. If the stream is at end-of-file, sets the error indicator for the stream and returns WEOF. If a read or encoding error occurs, fgetwc returns WEOF, sets the error indicator for the stream, and sets errno to one of the following:
The fgetwc function obtains the next character (if present) from the input stream pointed to by fp, converts it to the corresponding wide-character code, and advances the associated file position indicator for the stream.