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

NAME

6       explain_popen_or_die - process I/O and report errors
7

SYNOPSIS

9       #include <libexplain/popen.h>
10       FILE *explain_popen_or_die(const char *command, const char *flags);
11

DESCRIPTION

13       The  explain_popen_or_die  function is used to call the popen(3) system
14       call.  On failure an explanation will be printed  to  stderr,  obtained
15       from  explain_popen(3),  and  then  the  process  terminates by calling
16       exit(EXIT_FAILURE).
17
18       This function is intended to be used in a fashion similar to  the  fol‐
19       lowing example:
20              FILE *fp = explain_popen_or_die(command, flags);
21
22       command The  command,  exactly  as  to be passed to the popen(3) system
23               call.
24
25       flags   The flags, exactly as to be passed to the popen(3) system call.
26
27       Returns:
28               This function only returns on success, see  popen(3)  for  more
29               information.  On failure, prints an explanation and exits.
30

SEE ALSO

32       popen(3)
33               process I/O
34
35       explain_popen(3)
36               explain popen(3) errors
37
38       exit(2) terminate the calling process
39
41       libexplain version 0.40
42       Copyright (C) 2009 Peter Miller
43
44
45
46                                                       explain_popen_or_die(3)
Impressum