Question: Implement a function that takes three strings as arguments: in; an input string s: a substring to look for r: a substring to replace it

Implement a function that takes three strings as arguments: in; an input string s: a substring to look for r: a substring to replace it with It then creates a new string with the first instance of substring s replaced with r. Use the following prototype: char * replace(const char *in, const char *s, const char *r); Here are some examples: You may use functions in string.h
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
