阅读背景:

如何在C中以编程方式实现“tee”?

来源:互联网 

I'm looking for a way in C to programmatically (ie, not using redirection from the command line) implement 'tee' functionality such that my stdout goes to both stdout and a log file. This needs to work for both my code and all linked libraries that output to stdout. Any way to do this?I'm looking for a way in C to programmatically




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: