title: c: skip an element with scanf
body: <p>I'm trying to scan a file that contains 13 ints which are to be stored in 13 variables. Is there a way to loop over this, while skipping the i-th element? I'm anticipating there might be a solution, which have yet eluded me, perhaps similar to the code below:</p>
  
  <pre><code>int i;
  for (i = 0; i &lt; 13; i++)
    fscanf(file, %d, &amp;variables[i]); // somehow apply i to %d
  </code></pre>
  
  <p>instead of the obvious but lengthy and unclean:</p>
  
  <pre><code>fscanf(file, %d, &amp;variable1);
  fscanf(file, %*d, %d, &amp;variable2);
  fscanf(file, %*d %*d, %d, &amp;variable3); // etc
  </code></pre>
  
  <p>thanks</p>