Aegis  4.25.D505
Functions
common/safe_strsig.h File Reference

Go to the source code of this file.

Functions

const char * safe_strsignal (int sig)

Function Documentation

const char* safe_strsignal ( int  sig)

The safe_strsignal() function returns a string describing the signal number passed in the argument sig. The string can only be used until the next call to safe_strsignal().

Parameters:
sigThe number of the signal
Returns:
The safe_strsignal() function returns the appropriate description string, or an unknown signal message if the signal number is invalid.
Note:
On some systems, a NULL pointer may be returned by strsignal for an invalid signal number. This wrapper function cataches those cases.