title: sscanf & newlines
body: <p>I need to parse a response from a server like this:</p>
  
  <p>risposta:</p>
  
  <pre><code>200\n
  Len 1040\n
  Expire 30\n
  \n
  1111111111111111111111111\n
  1111111111111111111111111\n
  1111111111111111111111111\n
  </code></pre>
  
  <p>I'm trying with sscanf:</p>
  
  <pre><code>sscanf(risposta, "%d\nLen %d\nExpire %d\n\n%s[^\0]", &amp;risp-&gt;type, &amp;risp-&gt;len, &amp;risp-&gt;expire, risp-&gt;risorsa);
  </code></pre>
  
  <p>but it puts only 1111111111111111111111111 in risp->risorsa.
  How to resolve? </p>
  
  <p>P.s. struct risp:</p>
  
  <pre><code>typedef struct Server_risp {
     int type;
     int expire;
     int len;
     int sup;
     int inf;
     char risorsa[5000];
   }Server_risp;
  </code></pre>