Integer type (typically 4 bytes, -2,147,483,648 to 2,147,483,647)
1st Parameter
The character to be tested, passed as an `unsigned char` cast to an `int`, or `EOF`
Read more about parameters of isspace in parameters section
The isspacefunction in C language Checks whether the character is a white-space character.
The isspace function tests whether c is a white-space character. In the default C locale, white-space characters are: space, form feed ('\f'), newline ('\n'), carriage return ('\r'), horizontal tab ('\t'), and vertical tab ('\v').
The isspacefunction takes 1
parameter:
•
int `c`: The character to be tested, passed as an `unsigned char` cast to an `int`, or `EOF`
Checks if the given character `c` is a whitespace character. Returns a nonzero value if `c` is whitespace, and `0` otherwise.
The isspace function return value :
Returns non-zero if the character is a white-space character, 0 otherwise
Output
This example demonstrates basic usage of isspace with various characters.