flushinp(3) — Subroutines
Digital
NAME
flushinp − discard typeahead
SYNOPSIS
#include <curses.h>
int flushinp()
DESCRIPTION
Any typeahead input that has not been read by the program is discarded.
RETURN VALUES
The flushinp function returns OK on success and ERR on error.