#include <stdio.h> typedef struct _test { void (*pFunction)(); }STest; void display() { printf("hello function "); } void main(void) { STest test; test.pFunction = display; test.pFunction(); }
Done.