New to C, quick question about string manipulation.
I need a highly efficient function to replace parameters in a string, basically the same way that printf works.
char *template = "foo %s bar %s ...";
newString = replaceParams(template, "param1", "param2");
Is it possible to just redirect printf ? (as long as printf is efficient)
Otherwise whats my best option (algorithm)?