I\'m working on getting some legacy code under unit tests and sometimes the only way to sense an existing program behavior is from the console output.
I see lots of
Try sprintf, that's more efficient.
int i; char str[] = "asdf"; char output[256]; sprintf(output, "asdfasdf %s %d\n", str, i);