title: Is it possible to create a C varargs function with no arguments?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2622147/is-it-possible-to-have-a-variadic-function-in-c-with-no-non-variadic-parameter">Is it possible to have a variadic function in C with no non-variadic parameter?</a>  </p>
  </blockquote>
  
  
  
  <p>Is it possible to create a C varargs function with no arguments?</p>
  
  <p>For example:</p>
  
  <pre><code>int foo(...);
  </code></pre>
  
  <p>I want to do something like the following: </p>
  
  <pre><code>list* create_list(...){
      list *mylist = list_create();
      void *current_arg = va_arg(void*);
      while (current_arg != NULL){
          list_add(mylist, current_arg);
          current_arg = va_arg(void*);
      }
      return mylist;
  }
  </code></pre>