iswblank() — Test for blank character classification

Standards

Standards / Extensions C or C++ Dependencies

Language Environment
C99
Single UNIX Specification, Version 3
C++ TR1 C99

both  

Format

#include <wctype.h>

int iswblank(wint_t wc);
C99:
#define _ISOC99_SOURCE
#include <wctype.h>

int iswblank(wint_t wc);

General description

Tests for a wide blank character.

The space, uppercase, and lowercase characters can be redefined by their respective classes of the LC_CTYPE in the current locale.

For use as a C library function: To avoid infringing on the user's name space, this nonstandard function has two names. One name, __iswblk(), and the other as shown above. The name shown above is exposed only when you use the compiler option LANGLVL(EXTENDED) or define the _EXT feature test macro.

For use as a z/OS UNIX function: Define the _OPEN_SYS feature test macro.

Note: The iswblank() function has a dependency on the level of the Enhanced ASCII Extensions. See Enhanced ASCII support for details.

Returned value

If the wide integer satisfies the test value, iswblank() returns nonzero.

If the wide integer does not satisfy the test value, iswblank() returns 0.

The value for wc must be representable as a wide unsigned char. WEOF is a valid input value.

The behavior of iswblank() is affected by the LC_CTYPE category of the current locale. If you change the category, undefined results can occur.

Related information