GNU/Linux |
CentOS 5.1 |
|
![]() |
fcloseall(3) |
![]() |
fcloseall − close all open streams
#define _GNU_SOURCE
#include <stdio.h>
int fcloseall(void);
The fcloseall() function dissociates all open streams from its underlying file or set of functions. Any buffered output data is written first, using fflush(3). Note that the standard streams (stdin, stdout and stderr) are also closed.
This function always returns 0.
close(2), fclose(3), fflush(3), fopen(3), setbuf(3)
The fcloseall() function is a GNU extension.
![]() |
fcloseall(3) | ![]() |