Is a char punctuation
#include <ctype.h> #include <stdio.h> int main(void) { char ch; for(;;) { ch = getchar(); if(ispunct(ch)) printf("%c is punctuation\n", ch); if(ch == '.') break; } return 0; }