 | | This rather confusing prototype says that signal accepts two arguments, and returns a pointer to a function that returns nothing (void). The first argument, sig, is an integer, and represents the signal whose disposition is to be changed. The second argument, disp, is a pointer to a function that takes a single integer argument and returns nothing (void). This function is the signal handler for sig; whenever sig is received, the disp function will be called with sig as its argument (this allows a single handler function to handle multiple signals). The return value from signal is a pointer to the previous signal handler function. | |
|