All pastes #1939609 Raw Edit

Mine

public text v1 · immutable
#1939609 ·published 2010-09-13 12:00 UTC
rendered paste body
#include <stdlib.h>
#include <stdio.h>

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;
}