delorie.com/djgpp/doc/libc/libc_807.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

tcflush

Syntax

 
#include <termios.h>

int tcflush (int fd, int which);

Description

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
the unprocessed characters in the input buffer are discarded
TCOFLUSH
no effect (provided for compatibility)
TCIOFLUSH
has the combined effect of TCIFLUSH and TCOFLUSH

Note that the termios emulation handles console only.

Return Value

Zero on success, nonzero on failure.

Portability

ANSI/ISO C No
POSIX 1003.2-1992; 1003.1-2001


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004