#include <curses.h>
The flushinp() function discards (flushes) any characters in the input buffer associated with the current screen.
The flushinp() function always returns OK.
No errors are defined.