strsignal()
Return the description of a signal
Synopsis:
#include <string.h>
char *strsignal( int signo );
Arguments:
- signo
- The signal number that you want the description of.
Library:
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
Description:
The strsignal() function returns a pointer to the language-dependent string describing a signal.
Returns:
A pointer to the description of the signal, or NULL if signo isn't a valid signal number. This array will be overwritten by subsequent calls to strsignal().
Don't modify the array returned by this function.
Classification:
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |