I have been thinking of ways to flush bad entries in scanf functions to allow for loop prompts to do their job.
scanf
I have a function call here that flushes th
You can use:
fscanf(stdin, "%*[^\n]%*c");