title: Since we have snprintf, why we don't have a snscanf?
body: <p>I have <code>snprintf</code> and it can avoid a buffer overflow, but why there is no function called <code>snscanf</code>?</p>
  
  <p>Code:</p>
  
  <pre><code>int main()
  {
       char * src = "helloeveryone";
       char buf1[5];
       sscanf(src,"%s",buf1); // here is a  array out of bounds
  
  }
  </code></pre>
  
  <p>So, I think a <code>snscanf</code> is also needed. Why do we have only have <code>snprintf</code>?</p>