Can someone explain the difference between these two typedefs? (Associated with a function pointer)

This is obviously a function pointer:

typedef int (* foobar) (int a, unsigned char *b, unsigned int c); 

But what does it do?

 typedef int (foobar *) (int a, unsigned char *b, unsigned int c); 
+4
source share
1 answer

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

 foo.cpp:1: error: expected `)' before '*' token 
+13
source

Source: https://habr.com/ru/post/1303895/


All Articles