Copyright © 2014 by tutorialspoint
#include <stdio.h> int isspace(int c);
The function returns nonzero if c is any of:
CR FF HT NL VT space or any other locale-specific space character.
The function returns nonzero if c is space otherwise this will return zero which will be equivalent to false.
#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; }
It will proiduce following result:
"Character is a space
Advertisements