title: Passing parameters dynamically to variadic functions
body: <p>I was wondering if there was any way to pass parameters dynamically to variadic functions. i.e. If I have a function</p>
  
  <pre><code>int some_function (int a, int b, ...){/*blah*/}
  </code></pre>
  
  <p>and I am accepting a bunch of values from the user, I want some way of passing those values into the function: </p>
  
  <pre><code>some_function (a,b, val1,val2,...,valn)
  </code></pre>
  
  <p>I don't want to write different versions of all these functions, but I suspect there is no other option?</p>