I am trying to use scanf() to read in input someone types to the command line after the program is running. The problem i am running into is i need multiple different forms of input. For example they might type "quit" the first time and "quit 5" the next. Is there a way to pull the entire thing in as a string and then parse out the quit and the number if it got entered? I want to be able to have a char[] with quit inside and the 5 stored as an int. Thanks for your help.