Syntax of isspace()
isspace (character);
Parameters of isspace()
The isspace() function takes only one parameter of type char. It is the character to be tested.
Return Value of isspace()
The isspace() function returns an integer value that tells whether the passed parameter is a whitespace character or not. The possible return values of isspace() function are:
- If the character is a whitespace character, then the return value is non-zero.
- If the character is not a whitespace character, then the return value is zero.
isspace() in C
The isspace() in C is a predefined function used for string and character handling. This function is used to check if the argument contains any whitespace characters. It is declared inside <ctype.h> header file.
Contact Us