This should work:
Code:
void func()
{
	printf("hello world");
}


typedef struct
{
	var x;
	var y;
	int func();
} SPOT;

// ...
SPOT spot;
spot.func = func;

//...
spot.func();




Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com