signal

Sets an interrupt exception handler.

void (*signal (int sig, void(*func)(int sig))) (int sig);

Required Header
<signal.h>

Return Value

This function returns the old signal handler address.

Parameters

sig

  The signal constant to be set

func

  The signal handler to be used

Remarks

The signal function sets the handler specified by sig to func.

Signal Processing

See Also    raise