Hi,
Does anyone have a general purpose C string substitute function . I have tried it with strtok but failed.
The function could be of the form
char *sub_string(char *the_string, char *find, char *replace);
returning a string with the substitution of find for replace.
eg. char *str =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.