isspace

Header: <ctype.h>

Checks if the given character is either

# Declarations

int isspace( int ch );

# Parameters

# Return value

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

# Example

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

# See also