title: Best way to replace a part of string by another in c?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3659694/how-to-replace-substring-in-c">how to replace substring in c?</a>  </p>
  </blockquote>
  
  
  
  <p>I have tried looking for a better solution for this problem. There are codes available but all for C++. Not to forget this is very simple and basic in Java. I wanted a great optimal solution in C? </p>
  
  <p>Any help will be greatly appreciated! 
  Thanks!</p>