title: How to pass variable number of args to a variadic function
body: <p>I have a variadic function with the signature:</p>
  
  <pre><code>- (id)initWithNumVertices:(NSUInteger)inCount, ...;
  </code></pre>
  
  <p>But I cannot figure out how to construct the ellipsis part from a <strong>variable</strong> number of vertices. How can this be done?</p>
  
  <p>EDIT: sorry I wasn't asking for a way to write this function, I'm asking for a way to call it, using an <strong>unknown</strong> number of variables. The function takes structs and not objects.</p>
  
  <p>If the number of arguments is known, I can do this:</p>
  
  <pre><code>[[MyObject alloc] initWithNumVertices:4, v[0], v[1], v[2], v[3]];
  </code></pre>
  
  <p>But how can I call this when the number of vertices is unknown?</p>