Internally capture/redirect stdout?

后端 未结 4 1470
梦如初夏
梦如初夏 2020-12-18 07:32

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

4条回答
  •  [愿得一人]
    2020-12-18 08:02

    Not to mention: there is now a handy U-Streams C source code library that makes redirecting stdout and stderr quite trivial. And you can even redirect them very easily to multiple destinations. And, you can create your own streams besides that can be used in exactly the same way stdout and stderr behave.

    Look for the U-Streams C Library... handy indeed.

提交回复
热议问题