I've seen people using typedef with types like int, void, double etc. And I just found out that you can use typedef for functions...but how do I use it?
typedefint foo(int x, int y);
Also, what does c_str do? (can you give me an example? thanks..)
In your example you are trying to typedef a function (not a function pointer), which may simplify and document the declarations of a lot of functions (just declaration)