Next: , Up: Signals


7.1 psignal—print a signal message on standard error

Synopsis

     #include <stdio.h>
     void psignal(int signal, const char *prefix);
     

Description
Use psignal to print (on standard error) a signal message corresponding to the value of the signal number signal. Unless you use NULL as the value of the argument prefix, the signal message will begin with the string at prefix, followed by a colon and a space (: ). The remainder of the signal message is one of the strings described for strsignal.


Returns
psignal returns no result.

Portability
POSIX.1-2008 requires psignal, but the strings issued vary from one implementation to another.

Supporting OS subroutines required: close, fstat, isatty, lseek, read, sbrk, write.