FAQ > Why fflush(stdin) is wrong - Cprogramming.com
FAQ > Get a line of text from the user/keyboard (C) - Cprogramming.com