I\'m currently working through the excercises in \'The C Programming Language\'. Here\'s one of my solutions:
int c; while ((c=getchar()) != EOF) { if (c == \
An alternative option which hasn't been mentioned yet:
while(condition) (void)0;
I really do not prefer to write my loops this way, but I had a TA last semester who did.