libexplain  1.4.D001
Functions
libexplain/exit.h File Reference

"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)

Detailed Description

"Intercept and explain program exit status"

Definition in file exit.h.


Function Documentation

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.

Note:
You need an ANSI C '89 compliant C compiler, or this does nothing.
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.

Note:
You need an ANSI C '89 compliant C compiler, or this does nothing.
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.

Note:
You need an ANSI C '89 compliant C compiler, or this does nothing.