B
Bartc
I have a variable like this:
int *p;
Sometimes this points to an int location containing the address of a
void(void) function.
How can I cast it so that I can call that function?
I've tried casting to void **(void). The compiler keeps saying such a cast
is illegal.
(It should compile to something like this in x86 code:
mov esi,[p]
call [esi]
)
Thanks,
-- Bartc
int *p;
Sometimes this points to an int location containing the address of a
void(void) function.
How can I cast it so that I can call that function?
I've tried casting to void **(void). The compiler keeps saying such a cast
is illegal.
(It should compile to something like this in x86 code:
mov esi,[p]
call [esi]
)
Thanks,
-- Bartc