int iswprint(wint_t ch) vs isprint() : iswprint « wctype.h « C / ANSI-C






int iswprint(wint_t ch) vs isprint()

 

    
  

#include <stdio.h>
#include <wctype.h>

int main(void)
{
   int wc;

   for (wc=0; wc <= 0xFF; wc++) {
      printf("%3d", wc);
      printf(" %#4x ", wc);
      printf(" %c", iswprint(wc)  ? wc   : ' ');

      putchar('\n');
   }
}

         

           
       








Related examples in the same category