title: fscanf reading newline character
body: <p>I have been slowly tracking down my error for my program. I have narrowed it down to this. 
  I have a user input </p>
  
  <p><code>fscanf(stdin, "%c %c %d", &amp;car, &amp;dir, &amp;amount);</code></p>
  
  <p>the first time I access it it works fine, correctly reading in the values. The second time in the loop it reads a <code>\n</code> into car instead of the char I give it. it then reads what should have been in car into dir. amount reads correctly. As car is passed to other functions for counting I eventually end up with a segfault. </p>
  
  <p>Is it reading in the \n from the previous line or something? </p>