1explain_fclose_or_die(3)   Library Functions Manual   explain_fclose_or_die(3)
2
3
4

NAME

6       explain_fclose_or_die - close a stream and report errors
7

SYNOPSIS

9       #include <libexplain/fclose.h>
10       void explain_fclose_or_die(FILE *fp);
11

DESCRIPTION

13       The  explain_fclose_or_die  function is used to fflush(3) and fclose(3)
14       the given stream.  If there is an error,  it  will  be  reported  using
15       explain_fclose(3), and then terminates by calling exit(EXIT_FAILURE).
16              explain_fclose_or_die(fp);
17
18       fp      The fp, exactly as to be passed to the fclose(3) system call.
19
20       Returns:
21               Only  returns  on  success.  Reports error and process exits on
22               failure.
23
25       libexplain version 0.40
26       Copyright (C) 2008 Peter Miller
27

AUTHOR

29       Written by Peter Miller <pmiller@opensource.org.au>
30
31
32
33                                                      explain_fclose_or_die(3)
Impressum