title: Is there an equivalent in C for C++ templates?
body: <p>In the code I am writing I need <code>foo(int, char*)</code> and <code>foo(int, int)</code> functions.</p>
  
  <p>If I was coding this in C++ I would use templates. Is there any equivalent for C? Or should I use void pointers? How?</p>