isspace
Tests for a white-space character (function or macro)
#include <ctype.h>
int isspace (
int c);
isspace returns a nonzero value when the argument is one of the indicated white-space characters. Otherwise, a value of 0 is returned.
The isspace function or macro tests for the following white-space characters:
isalnum, isalpha, iscntrl, isdigit, islower, isprint, ispunct, isupper, isxdigit, tolower, toupper
#include <stdlib.h>
#include <ctype.h>
#include <stdio.h>
main()
{
int i;
while((i = getch()) != ’0’)
printf("%s\r\n",isspace(i) ? "yes" : "no");
}