Kenny McCormack, dans le message <tlqce3$fuhb$
[email protected]>, a
écrit :
The funny thing is that (at least on my system), nowhere in "man signal"
does it actually tell you how to declare the signal handler function (that is, as simply "void").
SYNOPSIS
#include <signal.h>
typedef void (*sighandler_t)(int);
sighandler_t signal(int signum, sighandler_t handler);
All we need to know is there.
Except…
That's the C way...
Yes, knowledge of the C programming language, how to read type declarations
and so on, is an implicit prerequisite.
All of this seems to be an artifact of the fact that functions and pointers to functions are (basically) the same thing.
No they are not.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)