title: Change string pointed by pointer
body: <p>Many functions in c take pointer to constant strings/chars as parameters eg <code>void foo(const char *ptr)</code> .  However I wish to change the string pointed by it (<code>ptr</code>).how to do it in c</p>