fcloseall
—
close all standard I/O streams
#include <stdio.h>
int
fcloseall
(void);
The fcloseall
() function closes all open standard I/O
streams. The equivalent of fflush(3C)
is called on each stream before closing, thus any buffered or pending input is
discarded while any buffered or pending output is written out to the
underlying file. This includes the standard streams,
stdin, stdout, and
stderr.
Currently, the function fcloseall
() always returns
0. Note, portable applications should always check the
return value.