Human friendly c declarations

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**))[3]” means.

To decipher weird c declarations go to 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.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s