title: Find int in a string (char*) in pure c
body: <p>There is a string with a line of text. Let's say:  </p>
  
  <pre><code>char * line = "Foo|bar|Baz|23|25|27";
  </code></pre>
  
  <p>I would have to find the numbers. </p>
  
  <p>I was thinking of something like this:  </p>
  
  <ol>
  <li>If the given char is a number, let's put it into a temporary char array. (buffer)  </li>
  <li>If the next character is NOT a number, let's make the buffer a new int.</li>
  </ol>
  
  <p>The problem is... how do I find numbers in a string like this?<br>
  (I'm not familiar with C99/gcc that much.)   </p>
  
  <p>Compiler used: gcc 4.3 (Environment is a Debian Linux <em>stable</em>.)</p>