I guess I've always been more of a for loop guy myself.
You could have also done it this way:
Methinks most people here though are going to shank me for even posting that code.Code:void flushin(void) { int i; loop: i = getchar(); if(i != '\n' && i != EOF) goto loop; }