3 ms·
Except 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.
by Koshkin 9y ago
Except 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);