typedef void (*FN)(void);
void *p = malloc(...);
memcpy(p, ...);
FN fn = (FN)p;
(*fn)();
free(p);
「動的関数」ってこんな感じ?