.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) .\" May be distributed under the GNU General Public License .\" References consulted: .\" Linux libc source code .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 17:59:03 1993 by Rik Faith (faith@cs.unc.edu) .TH STRSIGNAL 3 "April 13, 1993" "GNU" "Linux Programmer's Manual" .SH NAME strsignal \- return string describing signal .SH SYNOPSIS .nf .B #include .sp .BI "char *strsignal(int " sig ); .sp .BI "extern const char * const " sys_siglist [] .fi .SH DESCRIPTION The \fBstrsignal()\fP function returns a string describing the signal number passed in the argument \fIsig\fP. The string can only be used until the next call to \fBstrsignal()\fP. .PP The array \fIsys_siglist\fP holds the signal description strings indexed by signal number. .SH "RETURN VALUE" The \fBstrsignal()\fP function returns the appropriate description string, or an unknown signal message if the signal number is invalid. .SH SEE ALSO .BR psignal "(3), " strerror (3)