Go to the first, previous, next, last section, table of contents.
#include <termios.h> int tcflush (int fd, int which);
This function clears the input and/or output queues on for the device/file open on handle fd. The which argument can take these values:
TCIFLUSH
TCOFLUSH
TCIOFLUSH
TCIFLUSH
and TCOFLUSH
Note that the termios emulation handles console only.
Zero on success, nonzero on failure.
not ANSI, POSIX
Go to the first, previous, next, last section, table of contents.