I started working on this C project and I found this weird code that I have never seen any thing like !
cas_send_browser_event_cb(cas_browser_event_t ev, void* priv)
{
Function_code ...
}
As you can see this function take two arguments , the first one is an enum
and the second is void *
.
I look for the call of this function and I find this :
casware_register_cb_uievent (cas_send_browser_event_cb , NULL);
As you can see, it is passed as a parameter to another function without arguments and even without ()
. I can't understand this code. Am I missing something ? (well it is somehow related to event programming).