title: sscanf multiple inputs
body: <p>I have an input string that I need to parse to get anywhere from 4 - 16 variables. Using sscanf I can get the first few variables but the rest show as 0. What do I need to do to get the rest?</p>
  
  <p>Line format: COMMAND [1 - 16 float variables separated by a space] </p>
  
  <p>The line is coming in from a file using something like this: </p>
  
  <p>fgets(line, 20, file);</p>
  
  <p>sscanf(line, "%s", param);</p>
  
  <p>string parString(param);</p>
  
  <p>if(parString == "NEAR"){</p>
  
  <pre><code>      sscanf(line, "%s %f", param, &amp;np);
        printf("%s %f\n", param, np);
  </code></pre>
  
  <p>}...</p>
  
  <p>Depending on the first word in the line I know how many variables I need to read in for that case. </p>