News for hackers. Stuff that matters.
Re:How Do I Declare a Function Pointer in C? by bstamour on Thursday January 19, 2017 @02:43PM (#13438849)
Yeah, typedefs solve the problem for fixed types. I guess you could use a macro to create a generic FUNC_PTR or something as well.
Re:How Do I Declare a Function Pointer in C? by ramshorns on Thursday January 19, 2017 @05:19PM (#13439986)
Macros are often a bad idea for defining types. If you do

    #define INT_PTR int*
    INT_PTR p, q;
the code is actively misleading. Is there a better way to do it for function pointers?
Re:How Do I Declare a Function Pointer in C? by flukus on Thursday January 19, 2017 @05:52PM (#13440219)
There are a few other problems with multiple declarations aren't there? I though they were discouraged in c.