Reading function pointer syntax
- by bobobobo
Everytime I look at a C function pointer, my eyes glaze over. I can't read them.
From here, here are 2 examples of function pointer TYPEDEFS:
typedef int (*AddFunc)(int,int);
typedef void (*FunctionFunc)();
Now I'm used to something like:
typedef vector<int> VectorOfInts ;
Which I read as
typedef vector<int> /* as */…