libexplain
1.4.D001
|
"Intercept and explain program exit status" More...
Go to the source code of this file.
Functions | |
void | explain_exit_on_exit (void) |
void | explain_exit_on_error (void) |
void | explain_exit_cancel (void) |
"Intercept and explain program exit status"
Definition in file exit.h.
void explain_exit_cancel | ( | void | ) |
The explain_exit_cancel function may be used to cause the value of the argument to exit(), or the return from main, to be printed on exit, int the case where that value is not EXIT_SUCCESS.
These three functions may be called more than once. The last to be called dictates the operation. The exit status will never be printed more than once.
void explain_exit_on_error | ( | void | ) |
The explain_exit_on_error function may be used to cause the value of the argument to exit(), or the return from main, to be printed on exit, int the case where that value is not EXIT_SUCCESS.
These three functions may be called more than once. The last to be called dictates the operation. The exit status will never be printed more than once.
void explain_exit_on_exit | ( | void | ) |
The explain_exit_on_exit function may be used to cause the value of the argument to exit(), or the return from main, to be printed on exit.
These three functions may be called more than once. The last to be called dictates the operation. The exit status will never be printed more than once.