DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

funflush(S)


funflush -- discard buffered data

Syntax

cc . . . -lc

   #include <stdio.h>
   

void funflush(FILE *stream);

Description

funflush causes any buffered data to be discarded. Unlike fflush [see fclose(S)], funflush does not write any pending data for output streams and does not attempt to synchronize the underlying file offset. It is principally intended for handling streams connected to terminals as part of interrupt processing. If stream is a null pointer, funflush acts on all open stdio streams. stream remains open.

See also

fclose(S), fopen(S), setbuf(S),
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003