Replace a source substring with a target substring in an input string using this Standard-compatible, public domain C function.
creativeandcritical.net