Now I want to call a function pointer using the same method I used on the int and float, here's the relevant code:
I don't know what to put at the what_to_put_here on the last line.Code:void printer()
{
printf("in printer\n");
}
...
void *test_funcptr = malloc(8);
*(int*)((int*)test_funcptr+1) = (int)&printer;
*((*what_to_put_here)()((int*)test+1))