WEOF - C wctype.h

C examples for wctype.h:WEOF

Type

constant

from

<cwchar> 
<cwctype>

Description

Wide End-of-File

Demo Code


#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);
  }
}

Related Tutorials