strsignal()

NAME

strsignal(), strsigname() - return string or name describing signal

SYNOPSIS

#include <string.h>

extern const char * const sys_siglist[]
char * strsignal(int signal) char * strsigname(int signal)

DESCRIPTION

The strsignal(3) function returns a pointer to a string that describes the signal passed in the argument signal. The strsigname(3) function returns a pointer to a string that names the signal passed in the argument signal. The pointer refers to a static buffer that is overwritten at the next call to strsignal(3).

RETURN VALUES

The strsignal(3) function returns a pointer to a string describing the signal, or a pointer to the string "Unknown signal: " and the signal number.

The strsigname(3) function returns a pointer to a string naming the signal, or a pointer to the string "Unknown signal: " and the signal number.

SEE ALSO

strsignal(1)

strerror(3)

strsigname(3)