Manual Reference Pages - EXPLAIN_FOPEN_OR_DIE (3)
explain_fopen_or_die - open file and report errors
FILE *explain_fopen_or_die(const char *pathname, const char *flags);
The B]explain_fopen_or_die() function opens the file whose name
is the string pointed to by pathname and associates a stream with it.
See I]fopen(3) for more information.
This is a quick and simple way for programs to constitently report file
open errors in a consistent and detailed fahion.
Upon successful completion B]explain_fopen_or_die returns a
If an error occurs, B]explain_fopen will be called to explain
the error, which will be printed onto I]stderr, and then the
process will terminate by calling CW]exit(EXIT_FAILURE).
stream open functions
explain I]fopen(3) errors
terminate the calling process
libexplain version 1.3
Copyright © 2008 Peter Miller
Written by Peter Miller <email@example.com>
| ||EXPLAIN_FOPEN_OR_DIE (3) ||--> |
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.