title: Simulation of templates in C (for a queue data type)
body: <p>I' m trying to implement a <code>queue</code> structure using C. My implementation is very simple; the queue can hold only <code>int</code>s and nothing else. I was wondering if I could simulate <code>C++</code> templates in <code>C</code>(probably by using the preprocessor <code>#define</code>) so that my <code>queue</code> can hold any data type.</p>
  
  <p><strong>Note:</strong> I do not want to use <code>void*</code>. I think it is a bit risky and can easily cause bizarre runtime errors.</p>