man pages section 3: Curses Library Functions

Exit Print View

Updated: July 2014
 
 

flushinp(3XCURSES)

Name

flushinp - discard type-ahead characters

Synopsis

cc [ flag... ] file... –I /usr/xpg4/include –L /usr/xpg4/lib \
–R /usr/xpg4/lib –lcurses [ library... ]

c89 [ flag... ] file... –lcurses [ library... ]
 
#include <curses.h>

int flushinp(void);

Description

The flushinp () function discards (flushes) any characters in the input buffer associated with the current screen.

Return Values

The flushinp() function always returns OK.

Errors

No errors are defined.

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
MT-Level
Unsafe
Standard

See also

libcurses(3XCURSES), attributes(5), standards(5)