#include struct test { void (*handler)( char *param ); }; void f( char *param ) { ; } int main() { struct test tmp; tmp.handler = f; }