func is a pointer to a function that takes an int and returns void.
signal is a function that takes an int and a pointer as func and returns a pointer as func.
That is: you indicate which signal handler (func) is associated with the signal (sig), and the function returns a signal handler (previous), which you can store somewhere.
Francesco
source share