4 extern void (*func_ptr
)(void);
5 extern void print_var (void);
6 extern void print_foo (void);
13 void (* func_ptr
)(void);
17 TEST xyz
= { &var
, print_var
};
24 printf ("We see var = %d\n", var
);
25 printf ("Setting var = 456\n");
30 printf ("We see var = %d\n\n", var
);
34 printf ("We see var = %d\n\n", var
);
37 printf ("We see foo = %d\n", foo
);
38 printf ("Setting foo = 19\n");
41 printf ("We see foo = %d\n\n", foo
);
44 printf ("Calling dllimported function pointer\n");
47 printf ("Calling functions using global structure\n");
52 printf ("We see var2[0] = %d\n\n", var2
[0]);