Since reading that fflush(stdin) is definitely not the way to go to clear the buffer for the keyboard (and if you don't know why, read the FAQ), I've moved over to the method of using:
Code:
while(((flush_char = getchar()) != '\n') && (flush_char != EOF));
I'm just wondering though, under what case would getchar() return EOF from the keyboard's input?