Understanding typedefs for function pointers in C

I have always been a bit stumped when I read other peoples’ code which had typedefs for pointers to functions with arguments. I recall that it took me a while to get around to such a definition while trying to understand a numerical algorithm written in C a while ago. So, could you share your tips and thoughts on how to write good typedefs for pointers to functions (Do’s and Do not’s), as to why are they useful and how to understand others’ work? Thanks!

7 Answers
7

Leave a Comment