[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    strsignal(3C) manual page Table of Contents

Name

strsignal - get error message string

Synopsis

#include <string.h>

char *strsignal(int sig);

MT-Level

Safe

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.

See Also

gettext(3I) , psignal(3C) , setlocale(3C) , str2sig(3C)

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) .


Table of Contents