#include #include struct hack { void *bar; }; int main(void) { struct hack *foo; int i; i = 3; foo = calloc(1, sizeof(struct hack)); foo->bar = &i; printf("%d\n", *(int*)foo->bar); return 0; }