title: Get phone number as string from long string in c
body: <p>I have Telit modem, and i want to get the sim phone number, the Telit return string like:</p>
  
  <pre><code>"+CNUM: "","+123456789123456",**145**ok"
  
  Or : "+CNUM: "","+123456789123456",**129**ok"
  </code></pre>
  
  <p>The different only with the numbers <code>145(International), 129(National)</code>.</p>
  
  <p>I want to get only the number : +123456789123456, without  "+CNUM: ""," and without ,129.</p>
  
  <p>I tried:</p>
  
  <pre><code>responseBuffer ="+CNUM: "",""+123456789123456"",145";
  sscanf(responseBuffer,"%*s %s",phoneNum);   // cut the beginning
  </code></pre>
  
  <p>how do i get rid of the reset of the string, the characters from <code>','</code> to the end? </p>