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

NAME

6       explain_freopen_or_die - open file and report errors
7

SYNOPSIS

9       #include <libexplain/freopen.h>
10       void  explain_freopen_or_die(const  char  *pathname, const char *flags,
11       FILE *fp);
12

DESCRIPTION

14       The explain_freopen_or_die function is used to reopen a  file  via  the
15       freopen(3)  system  call.   On  failure  it  will print an explanation,
16       obtained from the linexplain_freopen(3) function, on the standard error
17       stream and then exit.
18
19       This  function  is intended to be used in a fashion similar to the fol‐
20       lowing example:
21              explain_freopen_or_die(pathname, flags, fp);
22
23       pathname
24               The pathname, exactly as to be passed to the freopen(3)  system
25               call.
26
27       flags   The  flags,  exactly  as  to be passed to the freopen(3) system
28               call.
29
30       fp      The fp, exactly as to be passed to the freopen(3) system call.
31
32       Returns:
33               Only ever return on success.  Never returns on failure.
34
36       libexplain version 1.4
37       Copyright (C) 2008 Peter Miller
38

AUTHOR

40       Written by Peter Miller <pmiller@opensource.org.au>
41
42
43
44                                                     explain_freopen_or_die(3)
Impressum