title: Getting the size of varargs in C?
body: <p>I am trying to convert some Java code into C. The Java code goes like this:</p>
  
  <pre><code>public static int minimum( int... minimum ) {
  
      assert( minimum.length &gt; 0 );
  
      if ( minimum.length &gt; 0 )
       .... // some code that i am able to translate to C without any hassle
  }
  </code></pre>
  
  <p>Now I understand how to have varargs in C by using the <code>stdarg.h</code> header and using the macros provided. However I am stuck doing the <code>minimum.length</code> part. </p>
  
  <p>I have tried <code>strlen</code> but the terminal is giving me an incompatible integer to pointer conversion warning. Is there any way in C where I can replicate the same thing that Java does?</p>