fgets + sscanf FAQ > How do I get a number from the user (C) - Cprogramming.com FAQ > Get a line of text from the user/keyboard (C) - Cprogramming.com Quzah.
Hope is the first step on the road to disappointment.