Is it a space char
#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; }