title: Is it possible to write a varargs function that sends it argument list to another varargs function?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1719784/c-programming-forward-variable-argument-list">C Programming: Forward variable argument list.</a>  </p>
  </blockquote>
  
  <p>What I'd like to do is send data to a logging library (that I can't modfify) in a printf kind of way.  </p>
  
  <p>So I'd like a function something like this:</p>
  
  <pre><code>void log_DEBUG(const char* fmt, ...) {
     char buff[SOME_PROPER_LENGTH];
     sprintf(buff, fmt, &lt;varargs&gt;);
     log(DEBUG, buff);
  }
  </code></pre>
  
  <p>Can I pass varargs to another vararg function in some manner?</p>