FCLOSEALL(3C) Standard C Library Functions FCLOSEALL(3C)
NAME
fcloseall - close all standard I/O streams
SYNOPSIS
#include <stdio.h> int fcloseall(
void);
DESCRIPTION
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.
RETURN VALUES
Currently, the function
fcloseall() always returns
0. Note, portable
applications should always check the return value.
INTERFACE STABILITY
Committed.
MT-LEVEL Mt-Safe.
SEE ALSO
close(2),
fflush(3C),
attributes(7),
environ(7),
standards(7)OmniOS December 20, 2014 OmniOS