title: Change the values in a text and store it a char array in C
body: <p>I need some information regarding a scenario where I have an array stored with  SIP INVITE message </p>
  
  <pre><code>char array_invite[] =        "INVITE sip:302@1.2.3.4 SIP/2.0\r\n"
                               "Via:SIP/2.0/UDP 5.6.7.8:39708;\r\n"
                               "Max-Forwards: 70\r\n"
                               "Contact:&lt;sip:305@ 5.6.7.8&gt;\r\n"
                               "To: &lt;sip:302@1.2.3.4&gt;; \r\n"
                               "From: \042Client\042&lt;sip:305@5.6.7.8&gt;;\r\n"
                               "Call-ID: abcdefg\r\n"
                               "CSeq: 1 INVITE\r\n"
                               "Content-Type: application/sdp\r\n"
                               "Content-Length: 142\r\n";
  </code></pre>
  
  <p>I want to change the hard code values for the IP Address (1.2.3.4 and 5.6.7.8) and the ID number(302 and 305) and make it dynamic such that I want to enter the values manually in my terminal output so that for each session I can connect to different remote addresses. Since I am not that fluent in C I am posting this question. </p>
  
  <p>Anybody has an idea of how this can be done in C, may be an example would be good</p>
  
  <p>Regards
  Dev </p>