title: How to implement wrapper function for C sscanf() without using vsscanf()
body: <p>I want to implement a wrapper function for C <code>sscanf</code> without using <code>vsscanf</code>, because in my environment <code>vsscanf</code>() is not there only <code>sscanf</code> is there. I don't want to do a complete implementation of <code>sscanf</code> also because for that I need to consider all possible scenarios. I have seen some <a href="https://code.google.com/p/minilib-c/source/browse/trunk/stdio/scanf.c?r=8" rel="nofollow">samples</a> in google, but it has not considered all scenarios.</p>
  
  <p>So now I want to implement like below:</p>
  
  <pre><code>int my_sscanf(char * buf, char format[], ...)
  {
      va_list vargs = {0};
      va_start(vargs, format);
  
      //some loop to get the variable aguments 
      //and call again sscanf() here.    
  
      va_end (vargs);
  }
  </code></pre>