FCLOSEALL(3C) Standard C Library Functions FCLOSEALL(3C)

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.

Committed.

Mt-Safe.

close(2), fflush(3C), attributes(7), environ(7), standards(7)
December 20, 2014 OmniOS