[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions , Volume 2


flushinp Subroutine

Purpose

Discards input.

Library

Curses Library (libcurses.a)

Syntax

#include <curses.h>

int flushinp(void);

Description

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

Return Values

The flushinp subroutine always returns OK.

Examples

To flush all type-ahead characters typed by the user but not yet read by the program, enter:

flushinp();

Implementation Specifics

This subroutine is part of Base Operating System (BOS) Runtime.

Related Information

Curses Overview for Programming in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.

List of Curses Subroutines in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.

Obsolete Curses Subroutines in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]