title: Parsing text in C
body: <p>I have a file like this:</p>
  
  <pre><code>...
  words 13
  more words 21
  even more words 4
  ...
  </code></pre>
  
  <p>(General format is a string of non-digits, then a space, then any number of digits and a newline)</p>
  
  <p>and I'd like to parse every line, putting the words into one field of the structure, and the number into the other. Right now I am using an ugly hack of reading the line while the chars are not numbers, then reading the rest. I believe there's a clearer way.</p>