C isspace function

« Previous

Synopsis:

Example

#include <stdio.h>

int isspace(int c); 

Description:

The function returns nonzero if c is any of:

Example

CR FF HT NL VT space
or 
any other locale-specific space character.

Return Value

The function returns nonzero if c is space otherwise this will return zero which will be equivalent to false.

Example

Example

#include <stdio.h>

int main() {

  if( isspace( ' ' ) )
  {
     printf( "Character  is a space\n" );
  }
  if( isspace( 'A' ) )
  {
     printf( "Character  A is a space\n" );
  }
  return 0;
}

Output Will Be :

Output

"Character  is a space


« Previous
Have Any Suggestion? We Are Waiting To Hear from YOU!

Your Query was successfully sent!