title: C: array of void*
body: <p>I'm using <code>openCV</code> and need some callback function. these <code>callback</code> function just accept limited parameters. So, if I need more variables for those function, I must make a global variables and turn it around between functions. </p>
  
  <p>For example, here is the callback function :</p>
  
  <pre><code>    void mouse_callback(int event, int x, int y, int flags, void* param);
  // params : addition parameter, and just one, I need more parameters for this callback.
  // but cannot, so make global variable.
  </code></pre>
  
  <p>And because I shouldn't do that (make global variable), so I decided to make array of <code>(void*)</code> but I afraid C cannot make this, because size of each members can be different.</p>
  
  <p>My question is : can we make array of (void*), and if not, how can I overcome my problem : use callback function and don't need to make global variable.</p>
  
  <p>Thanks :)</p>