title: How to expect different data types in scanf()?
body: <p>I'm developing a chess game in C just for practicing. At the beginning of the game, the user can type 4 things:</p>
  
  <ul>
  <li>ROW<code>&lt;whitespace&gt;</code>COL (i.e. <code>2 2</code>)</li>
  <li>'h' for help</li>
  <li>'q' to quit</li>
  </ul>
  
  <p>How can I use a <code>scanf</code> to expect 2 integers or 1 char?</p>