strsignal
This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these messages)
No issues specified. Please specify issues, or remove this template. |
strsignal
is a function in the C Standard Library header file signal.h that accepts a signal number argument sig and returns a pointer to the corresponding message string. The strsignal
function locates the descriptive message string for a signal number.
Requirements
To use strsignal
the signal.h header file must be included.
Description
strsignal
returns a pointer to the language-dependent string describing a signal. The array pointed to is not to be modified by the program, but may be overwritten by subsequent calls to strsignal
.
The string can be used until the next call to strsignal().
Return
strsignal
returns the appropriate description string, or an unknown signal message if the signal number is invalid. On some systems (but not on Linux), a NULL pointer may be returned instead for an invalid signal number.