6_5_3_2_04_call_deref_function_pointer.c (170B)
1 typedef int (*Fn)(int); 2 3 static int add1(int x) { return x + 1; } 4 5 static int call_it(Fn f, int x) { return (*f)(x); } 6 7 int test_main(void) { return call_it(add1, 41); }
kitkit | |
| git clone https://git.ryansepassi.com/git/kit.git | |
| Log | Files | Refs | README |