2 ms·
As long as you're not using prehistoric versions if C, you don't have to define all variables up front, so there is much less justifiable reasons for that kind
by megaman22 9y ago
As long as you're not using prehistoric versions if C, you don't have to define all variables up front, so there is much less justifiable reasons for that kind of multiple declaration.
- Koshkin 9y agoExcept nothing will save you from the "one true way to write C" when you try to write a declaration of a pointer to a function, for example.
- jcelerier 9y agoyep, I prefer the c++ way by far : using foo = void(int, float);
- sigjuice 9y agoYou can adjust your function pointer typedefs if you like. e.g. signal(2) http://man7.org/linux/man-pages/man2/signal.2.html http://man7.org/linux/man-pages/man2/signal.2.html typedef void (*sighandler_t)(int); sighandler_t signal(int signum, sighandler_t handler); can be rewritten as typedef void sighandler_t(int); sighandler_t *signal(int signum, sighandler_t *handler);