title: How to drop extra input for scanf of %20s
body: <p>I am doing an assignment for an intro to c class so my knowledge is still pretty minimal, please be nice.  I have </p>
  
  <pre><code>scanf(" %20s", contact.name");
  printf("Do you want to enter a middle name?");
  scanf(" %c", doYouWant");
  </code></pre>
  
  <p>If the first scanf is more than 20 characters the characters will be the input for the next scanf.  If I use %s then it will accept the entire line but will be longer then the memory allocated. </p>
  
  <p>I need to get the first input and store in my struct then ask the next question. How do properly avoid having characters 21+ being used as input to the next question while limiting it to 20 characters. </p>