views:

95

answers:

1

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);
+12  A: 

It produces a compiler error, at least in GCC 4.3:

foo.cpp:1: error: expected `)' before '*' token
Brooks Moses
The code hasn't been run yet, but it was written by an experienced coder. It's for CodeWarrior BTW.
Quicksilver
Even experienced coders make typos. :)
vladr
Just confirmed that it was a mistake. Thanks y'all! :)
Quicksilver