title: Best ways of parsing a URL using C?
body: <p>I have a URL like this:</p>
  
  <pre><code>http://192.168.0.1:8080/servlet/rece
  </code></pre>
  
  <p>I want to parse the URL to get the values:</p>
  
  <pre><code>IP: 192.168.0.1
  Port: 8080
  page:  /servlet/rece
  </code></pre>
  
  <p>How do I do that?</p>