Is there an equivalent in C for C++ templates?
c
Solution
You can't do that. In C there are no overloads, one function, one name, you'll need to use a type that supports all your needs, e.g. (void *)
Either that or do a `foo_int(int,int)` and a `foo_char(int, char*)`
Problem
In the code I am writing I need `foo(int, char*)` and `foo(int, int)` functions. If I was coding this in C++ I would use templates. Is there any equivalent for C? Or should I use void pointers? How?