2
#include "fptr_array.h"
9
static char *testfunc2(int *p)
11
char *c = (char*) malloc(sizeof(char));
12
*c = (char) (0xff & *p);
16
void fptr_array_set(struct foo *s)
18
s->fptr_array[1] = testfunc1;
22
int *fptr_array_test(struct foo *s, int *p)
24
int *results = (int*) malloc(sizeof(int) * 2);
25
results[0] = (s->fptr_array[1])();
26
results[1] = (int) (*(s->c[3])(p));