strsignal(3C)
NAME
strsignal − get error message string
SYNOPSIS
#include <string.h>
char ∗strsignal(int sig);
DESCRIPTION
strsignal() maps the signal number in sig to a string describing the signal, and returns a pointer to that string. strsignal() uses the same set of the messages as psignal(3C). The returned string should not be overwritten.
RETURN VALUES
strsignal() returns NULL if sig is not a valid signal number.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
| MT-Level | Safe |
SEE ALSO
gettext(3C), psignal(3C), setlocale(3C), str2sig(3C), attributes(5)
NOTES
If the application is linked with −lintl, then messages returned from this function are in the native language specified by the LC_MESSAGES locale category; see setlocale(3C).
SunOS 5.6 — Last change: 29 Dec 1996