wint_t - C wctype.h

C examples for wctype.h:wint_t

Type

data type

from

<cwchar> 
<cwctype>

Description

Wide character integral type

Demo Code


#include <stdio.h>
#include <wctype.h>
int main ()// www . jav a 2s .co 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