isblank

Header: <ctype.h>

Checks if the given character is a blank character in the current C locale. In the default C locale, only space (0x20) and horizontal tab (0x09) are classified as blank.

# Declarations

int isblank( int ch );

(since C99)

# Parameters

# Return value

Non-zero value if the character is a blank character, zero otherwise.

# Example

#include <stdio.h>
#include <ctype.h>
#include <limits.h>
 
int main(void)
{
    for (int ndx=0; ndx<=UCHAR_MAX; ndx++)
        if (isblank(ndx)) printf("0x%02x\n", ndx);
}

# See also