I came across a function call
// call the entry point from the ELF header
// note: does not return!
((void (*)(void)) (ELFHDR->e_entry & 0xFFFFFF))();
ELFHDR->e_entry is a function pointer. I think ((void (*)(void))
is the return type. But I'm not sure what the type void * void
is.
Is there a rule to tell such type?
Thanks!