Code Snippets C

//Declaration: int isblank(int char);
//Return: returns nonzero if char is blank.
By default, the blank characters are space and horizontal tab.
#include
#include
int main(void)
{
char char;
for(;;) {
char = getchar();
if(char == '.') {
break;
}
if(isblank(char)){
printf("%c is a word separator\n", char);
}
}
return 0;
}
/*
q
q is a letter
w
w is a letter
q
q is a letter
.
*/