strsignal (3c) manual page

Table of Contents

Name

strsignal - get name of signal

Synopsis

#include <string.h>

char *strsignal(int sig);

Description

The strsignal() function maps the signal number in sig to a string describing the signal and returns a pointer to that string. It uses the same set of the messages as psignal(3C) . The returned string should not be overwritten.

Return Values

The strsignal() function returns NULL if sig is not a valid signal number.

Usage

Messages returned from this function are in the native language specified by the LC_MESSAGES locale category. See setlocale(3C) .

Attributes

See attributes(5) for descriptions of the following attributes:

tab() allbox; cw(2.750000i)| cw(2.750000i) lw(2.750000i) lw(2.750000i). ATTRIBUTE TYPEATTRIBUTE VALUE MT-LevelSafe

See Also

gettext(3C) , psignal(3C) , setlocale(3C) , str2sig(3C) , attributes(5)


Table of Contents