The trick with typedef is it is exactly the same syntax, in all cases, as declaring a variable of that type. This is essentially the only way you're going to ever remember how to do function pointer typedefs: typedef int (function_t)(int,int); // or something to that effect
Comments
Most methods in C read like an assignment,
so if you are trying to remember what order the arguments to strcpy go, it's
Then remember specially that typedef is the wrong way around to the way you would like it to be :)The trick with typedef is it is exactly the same syntax, in all cases, as declaring a variable of that type. This is essentially the only way you're going to ever remember how to do function pointer typedefs: typedef int (function_t)(int,int); // or something to that effect