I am trying to do something like this. buffer = "%s %s %s" std::vector<std::string> list; for(int i = 0; i < 3; i++) { sprintf(buffer, buffer, "replacement"); }
At the end I want the buffer to look like this "raplacement replacement replacement"
How would that work?