L
lovecreatesbeauty
Hello,
I'm confused by some complex function prototypes. Would you please
explain those to me in detail with C language syntax itself with your
rich knowledge & experiences. Thank you.
1. The prototype of function signal in signal.h:
void (*signal(int sig, void (*func)(int)))(int);
it's some complex to me. Please explain the C language syntax used to
make up this complex prototype.
2. And I saw another function prototype:
void interrupt (*oldhandler)();
-Is it legal?
-If it's a right prototype, what does identifier "interrupt" mean?
Should it be a type qualifier?
Thanks
I'm confused by some complex function prototypes. Would you please
explain those to me in detail with C language syntax itself with your
rich knowledge & experiences. Thank you.
1. The prototype of function signal in signal.h:
void (*signal(int sig, void (*func)(int)))(int);
it's some complex to me. Please explain the C language syntax used to
make up this complex prototype.
2. And I saw another function prototype:
void interrupt (*oldhandler)();
-Is it legal?
-If it's a right prototype, what does identifier "interrupt" mean?
Should it be a type qualifier?
Thanks