Original Post
I'm looking for a simple search and replace function written in C, but have been unable to find one. Does anyone know of a free one that works? I want to be able to give it a string like "Jack and Jill went over the hill." and tell it to replace all occurences of "Jack" with something like "John Thomas". I've written my own, but it has stopped working since I upgraded my compiler.