title: Sscanf with multiline string
body: <p>I have a string with multiple lines and I want to use sscanf to match particular parts of it.  It only seems to work however on matching data contained within the first line.</p>
  
  <p>For example, If I have the string:</p>
  
  <blockquote>
    <p>"age1: x \r\n
    age2: x"</p>
  </blockquote>
  
  <p>And using sscanf:</p>
  
  <blockquote>
    <p>sscanf(string, "age1: %d", &amp;i); - this works <br />
    sscanf(string, "age2: %d", &amp;j); - however this doesn't.</p>
  </blockquote>
  
  <p>Any ideas?</p>