Content-type: text/html Man page of strsignal

strsignal

Section: Standard C Library Functions (3C)
Updated: 31 Mar 2005
Index Return to Main 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:

ATTRIBUTE TYPEATTRIBUTE VALUE
MT-LevelSafe

 

SEE ALSO

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


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUES
USAGE
ATTRIBUTES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 02:37:27 GMT, October 02, 2010