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.

Similar Reads

Syntax of isspace()

isspace (character);...

How to use isspace() function in C?

The below example demonstrates how to use the isspace() function in C language:...

Examples of isspace() function in C

...

Conclusion

Example 1: C Program to count the number of words in a string....

FAQs on C isspace() Function

...

Contact Us