I was recently asked this question implementing template functionality in C. One possible solution could be using void pointer. I am wondering if there are some other approaches.
implementing template functionality in C