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

NAME

6       fcloseall - close all open streams
7

SYNOPSIS

9       #define _GNU_SOURCE         /* See feature_test_macros(7) */
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

ATTRIBUTES

26   Multithreading (see pthreads(7))
27       The fcloseall() function does not  lock  the  streams,  so  it  is  not
28       thread-safe.
29

CONFORMING TO

31       This function is a GNU extension.
32

SEE ALSO

34       close(2), fclose(3), fflush(3), fopen(3), setbuf(3)
35

COLOPHON

37       This  page  is  part of release 3.53 of the Linux man-pages project.  A
38       description of the project, and information about reporting  bugs,  can
39       be found at http://www.kernel.org/doc/man-pages/.
40
41
42
43GNU                               2013-06-21                      FCLOSEALL(3)
Impressum