### iswblank -- Test for Wide Blank Character Classification

Format

>     #include <wctype.h>
>     int iswblank(wint_t wc);

Language Level: Extension
iswblank tests whether the current LC_CTYPE locale category assigns the the blank character attribute to the wide character wc.

The value for wc must be representable as a wchar_t, or WEOF.

The behavior of iswblank is affected by the LC_CTYPE category of the current locale.

In the "POSIX" and "C" locales, the tab and space characters have the blank attribute.

Return Value
iswblank returns a nonzero value if wc has the blank attribute; 0 if it does not.

Example
This example tests whether wc is a blank type.

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

    void check(wchar_t wc) {
       if ((' ' != wc) && (iswprint(wc)))
          printf("  %lc is ", wc);
       else
          printf("x%02x is ", wc);
       if (!iswblank(wc))
          printf("not ");
       puts("a blank type character");
       return;
    }

    int main(void)
    {
       printf("In LC_CTYPE category of locale name \"%s\":\n",
              setlocale(LC_CTYPE, NULL));
       check(L'a');
       check(L' ');
       check(0x00);
       check(L'\n');
       check(L'\t');
       return 0;

       /*******************************************************
          The output should be similar to:

          In LC_CTYPE category of locale name "C":
            a is not a blank type character
          x20 is a blank type character
          x00 is not a blank type character
          x0a is not a blank type character
          x09 is a blank type character
       *******************************************************/
    }

isalnum to isxdigit -- Test Integer Value
isascii -- Test Integer Values
isblank -- Test for Blank Character Classification
_iscsym - _iscsymf -- Test Integer
iswalnum to iswxdigit -- Test Wide Integer Value
iswctype -- Test for Character Property
<wctype.h>