I need help getting user input this is the best I can think of:
Code:int drug_choice_selection; char drug_choice; printf("How Much? \n"); fgets(drug_choice, sizeof(drug_choice), stdin); sscanf(drug_choice, "%d", &drug_choice_selection);
If I wanted to extract a single char from user input what is the easiest way to do it?
1.Choose a number/char
2. enter it...
3. use it in the program