C examples for wctype.h:WEOF
constant
<cwchar> <cwctype>
Wide End-of-File
#include <stdio.h> #include <wctype.h> int main ()/*from w w w . j a v a 2 s .c o m*/ { FILE * pFile; wint_t c; pFile = fopen ("myfile.txt","r"); if (pFile) { do { c = fgetwc (pFile); if (iswgraph(c)) putwchar (c); } while (c != WEOF); fclose (pFile); } }