This one is quite obviously a function pointer :
typedef int (* foobar) (int a, unsigned char *b, unsigned int c);
But what does this one do?
typedef int (foobar *) (int a, unsigned char *b, unsigned int c);
It produces a compiler error, at least in GCC 4.3:
foo.cpp:1: error: expected `)' before '*' token
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With