C Programming Code Examples C > Beginners Lab Assignments Code Examples int isspace(int ch) returns nonzero if ch is a white-space character int isspace(int ch) returns nonzero if ch is a white-space character //Declaration: int isspace(int ch); //Return: returns nonzero if ch is a white-space character, including space, horizontal tab, vertical tab, formfeed, carriage return, or newline character; otherwise zero is returned. #include <ctype.h> #include <stdio.h> int main(void) { char ch; for(;;) { ch = getchar(); if(isspace(ch)){ printf("%c is white space\n", ch); } if(ch == '.'){ break; } } return 0; printf("Happy Codings"); printf("C Programming Language Code Examples"); } /* f is white space d is white space s is white space sa is white space w is white space . Happy Codings C Programming Language Code Examples */