title: Generic Structures in C
body: <p>Is there an option to create a generic structure, where providing a data type creates the corresponding structure?</p>
  
  <p>For example:</p>
  
  <pre><code>typedef struct StbInt {
      int value;
      struct Stb *left;
      struct Stb *right;
  } StbInt;
  </code></pre>
  
  <p>and </p>
  
  <pre><code>typedef struct StbChr {
      char value;
      struct Stb *left;
      struct Stb *right;
  } StbChr;
  </code></pre>
  
  <p>Only the value variable has a different data type. Do I have to create two different structures? </p>