Hacker News new | ask | show | jobs
by CJefferson 4692 days ago
Most methods in C read like an assignment,

so if you are trying to remember what order the arguments to strcpy go, it's

    strcpy(x,y) is like x = y
Then remember specially that typedef is the wrong way around to the way you would like it to be :)
1 comments

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