Hello,
Linux gcc 4.4.1
I have this function that passes this second parameter that casts it to a different type. I am just wondering am I correct?
It looks to me that it is casting the function evt_hdlr to a void * type to a long pointer type.
if(enable_evt_hdlr(EV_ANY, (long (*) (void *)) evt_hdlr) == -1)
{
..
}
The function evt_hdlr definition looks like this:
static int32_t evt_hdlr(void);
Many thanks for any suggestions,