static void increment(long long *n){ (*n)++; } struct test{ void (*work_fn)(long long *); }; struct test t1; t1.work_fn = increment;
How do I ac
Yes, that's how to call it. Function names and variables containing function pointers are essentially the same thing.