title: Pointer of a function with variable number of arguments
body: <p>I have a function with the following prototype:</p>
  
  <pre><code>void func(int an, ...);
  </code></pre>
  
  <p>And I would like to store the adress of this function and call it later.
  I have really no idea to how to do that, I desesperatly tried :</p>
  
  <pre><code>void (*funcPtr)(int, ...);  // Declaration
  funcPtr = func;     // Storage
  (*funcPtr)(3,2,5);      // Call
  </code></pre>
  
  <p>This code compiles fine, but at execution it does crap, when I enter my function the arguments in my <code>va_list</code> are not the ones I sent.</p>
  
  <p>Thanks in advance</p>
  
  <p><strong>EDIT :</strong> Alright, I just forgot the first argument. In my code above, the call line should be replaced with:</p>
  
  <pre><code>(*funcPtr)(3,3,2,5);        // Call
  </code></pre>