Hi, I do not understand the following function declaration:
Code:
void (*signal(int signum, void (*handler)(int)))(int);
I only understand the
int signum (the signal to be handled) and
void(*handler)(int) (a pointer to a function which returns
void and takes
int, but...
What does the ending
int means?
Why (
*signal...) ?
The signal manpage says:
Quote:
signal returns the previous value of the signal handler, or SIG_ERR on error.
|
So, why is it declared as
void?
Thanks In Advance.