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 == \
I don't think the procedure is, but your formatting is pretty weird. There's nothing wrong with:
/* Eat spaces */ while ((c = getchar()) == ' ');
(that is, indicate there's intentionally not a body)