1FCLOSEALL(3)               Linux Programmer's Manual              FCLOSEALL(3)
2
3
4

NAME

6       fcloseall - close all open streams
7

SYNOPSIS

9       #define _GNU_SOURCE
10       #include <stdio.h>
11
12       int fcloseall(void);
13

DESCRIPTION

15       The  fcloseall()  function  closes  all  of  the calling process's open
16       streams.  Buffered output for each  stream  is  written  before  it  is
17       closed (as for fflush(3)); buffered input is discarded.
18
19       The standard streams, stdin, stdout, and stderr are also closed.
20

RETURN VALUE

22       This  function  returns  0  if  all  files were successfully closed; on
23       error, EOF is returned.
24

CONFORMING TO

26       This function is a GNU extension.
27

SEE ALSO

29       close(2),   fclose(3),    fflush(3),    fopen(3),    setbuf(3),    fea‐
30       ture_test_macros(7)
31

COLOPHON

33       This  page  is  part of release 3.25 of the Linux man-pages project.  A
34       description of the project, and information about reporting  bugs,  can
35       be found at http://www.kernel.org/doc/man-pages/.
36
37
38
39GNU                               2006-12-27                      FCLOSEALL(3)
Impressum