title: Get number of characters read by sscanf?
body: <p>I'm parsing a string (a <code>char*</code>) and I'm using <code>sscanf</code> to parse numbers from the string into doubles, like so:</p>
  
  <pre><code>// char* expression;
  double value = 0;
  sscanf(expression, "%lf", &amp;value);
  </code></pre>
  
  <p>This works great, but I would then like to continue parsing the string through conventional means. I need to know how many characters have been parsed by <code>sscanf</code> so that I may resume my manual parsing from the new offset.</p>
  
  <p>Obviously, the easiest way would be to somehow calculate the number of characters that <code>sscanf</code> parses, but if there's no simple way to do that, I <em>am</em> open to alternative double parsing options. However, I'm currently using <code>sscanf</code> because it's fast, simple, and readable. Either way, I just need a way to evaluate the double and continue parsing after it.</p>