Strange C Function Syntax
The other day I saw some code C which I thought to be clearly wrong:
The other day I saw some code C which I thought to be clearly wrong:
Currying is not part of the C language. A few alternatives are shown that
can be used: Global variables, GCC extensions, code duplication, void
pointers, variable argument lists, and general parameter structs. Also
C++03 and C++11 examples are given.