Use iswblank function to check if a wide character is blank

Syntax

C iswblank function has the following syntax.

int iswblank(wint_t ch)

C iswblank function is from header file wctype.h.

Description

C iswblank function returns nonzero if ch is blank. By default, the blank characters are space and horizontal tab.

Example

C iswblank function tells if a character is wide character blank.


#include <stdio.h>
#include <wctype.h>
/*from   w ww  .ja  va  2 s.  c o m*/
int main(void)
{
   int wc;

   for (wc=0; wc <= 0xFF; wc++) {
      printf("%3d", wc);
      printf(" %#4x ", wc);
      printf("%3s", iswblank(wc)  ? "AN" : " ");

      putchar('\n');
   }
}




















Home »
  C Language »
    Function Reference »




assert.h
ctype.h
math.h
setjmp.h
signal.h
stdio.h
stdlib.h
string.h
time.h
wctype.h