title: C while loop until user enters "quit"
body: <p>Here's my code:
  1. User types in two names, with a space in between. This means that two strings need to be read. I.e. input: 
      John Doe.</p>
  
  <ol>
  <li>The strings are then checked in a char-array. (works fine).</li>
  <li>The while loop goes on until the user types "stop" - only "stop".
  How can I make it to stop directly if "stop" is entered - without the need to check the second string?</li>
  </ol>
  
  <p>The code:</p>
  
  <pre><code>while(bool==false)
  {
      scanf("%20s%20s", name1, name2);
  
      if(strcmp(name1, "stop")==0)
      {
          break;        
      }
      // but still the second name has to be entered
  
      rest of code...
  
  }
  </code></pre>
  
  <p>Thanks for any tips!</p>