Human friendly c declarationsPosted: November 12, 2013
An appropriate use of typedef’s can transform 99% of c’s gruesome type declarations into a mostly maintainable and maybe even readable piece of code. For that remaining 1%, or if you got a legacy application from someone with a very twisted mind, you’ll probably need a way decode what “int (*(Foo::*foo)(void**))” means.
To decipher weird c declarations go to http://cdecl.org/ and type your type. It works for most cases… good luck trying to figure out templates, though, for template metaprogramming you are on your own.