title: Ignoring integers that are next to characters using sscanf()
body: <p>Sorry for the simple question, but I'm trying to find an elegant way to avoid my program seeing input like "14asdf" and accepting it just as 14.</p>
  
  <pre><code>if (sscanf(sInput, "%d", &amp;iAssignmentMarks[0]) != 0)
  </code></pre>
  
  <p>Is there an easy way to prevent <code>sscanf</code> from pulling integers out of mangled strings like that?</p>