title: What's the easiest way to parse a string in C?
body: <p>I have to parse this string in C:</p>
  
  <pre><code>XFR 3 NS 207.46.106.118:1863 0 207.46.104.20:1863\r\n
  </code></pre>
  
  <p>And be able to get the <code>207.46.106.118</code> part and <code>1863</code> part (the first ip address).</p>
  
  <p>I know I could go char by char and eventually find my way through it, but what's the easiest way to get this information, given that the IP address in the string could change to a different format (with less digits)?</p>