3 ms·
If you want to write "generic" function in C, use #define to generate static function for your specific type. But it much much better to use C++ or Rust instead
by v_lisivka 8y ago
If you want to write "generic" function in C, use #define to generate static function for your specific type. But it much much better to use C++ or Rust instead.
Example: https://svnweb.freebsd.org/base/head/sys/sys/tree.h?revision=326256&view=markup https://svnweb.freebsd.org/base/head/sys/sys/tree.h?revision...