Allows you to specify the action to take when a particular signal is raised.
#include <signal.h> void (*ssignal (int sig, void (*func) (int, . . . ))) (int, . . . );
Since the signal function is defined by the ANSI C standard and the ssignal function is not, use signal for greater portability.
See Section 4.2 for more information on signal handling.
x | The address of the function previously established as the action for the signal. The address may be the value SIG_DFL (0) or SIG_IGN (1). |
0 | Indicates errors. For this reason, there is no way to know whether a return status of 0 indicates failure, or whether it indicates that a previous action was SIG_DFL (0). |