This seems like a bit of a computing systems 101 question, but I\'m stumped.
I am integrating existing code from C/C++ project A into my own project B. Both A and B
Before you printf(), you could close fd 1, and dup2() a pipe that you've created into fd 1.