fcloseall(3) - Linux man page
Name
fcloseall - close all open streamsSynopsis
#define _GNU_SOURCE /* See feature_test_macros(7) */#include <stdio.h> int fcloseall(void);
Description
The fcloseall() function closes all of the calling process's open streams. Buffered output for each stream is written before it is closed (as for fflush(3)); buffered input is discarded.The standard streams, stdin, stdout, and stderr are also closed.