clearing the input stack

I want to clear the scanf input stack after it abort an input line because of an error. how do I do that (using ANSI C only)?
Amos060797Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
julio011597Connect With a Mentor Commented:
Maybe just read and discard (i.e. forget the input).
There's no way to clear the input stream other than reading it.

-julio
0
All Courses

From novice to tech pro — start learning today.