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
11       #include <stdio.h>
12
13       int fcloseall(void);
14

DESCRIPTION

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

RETURN VALUE

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

CONFORMING TO

27       This function is a GNU extension.
28

SEE ALSO

30       close(2),   fclose(3),    fflush(3),    fopen(3),    setbuf(3),    fea‐
31       ture_test_macros(7)
32
33
34
35GNU                               2006-12-27                      FCLOSEALL(3)
Impressum