Availability:C-language interface function
int Sgetcode(IOSTREAM
*s)Read a Unicode code point from s. If it detects an invalid
multibyte character a warning is emitted and the code point
0xfffd
is returned. Other errors and end-of-file return -1;
Use
Sferror() or Sfeof()
to distinguish end of file from an error.