Go to the source code of this file.
Function Documentation
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:
-
| sig | The 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.