3 ms·
So I didn't understand what that syntax meant for the code John was talking about, so I figured I would share my findings for other C newbies like myself. (If I
by zengid 6y ago
So I didn't understand what that syntax meant for the code John was talking about, so I figured I would share my findings for other C newbies like myself. (If I am incorrect, please tell me!)
This:
int (*alloc_attr)(void *c, int fg, int bg, int flags, long *attrp);
means it's defining a function pointer that can point to a function that returns the type int and has a matching parameter list.
https://stackoverflow.com/questions/840501/how-do-function-pointers-in-c-work https://stackoverflow.com/questions/840501/how-do-function-p...