title: What function is to replace a substring from a string in C?
body: <p>Given a (<code>char *</code>) string, I want to find all occurrences of a substring and replace them with an alternate string. I do not see any simple function that achieves this in <code>&lt;string.h&gt;</code>.</p>