You might want to look at reopen().
Hello Mario,
I read and investigated [color=darkred]freopen() but I did not see how it could be used in my situation.
The prototype I have for the function is:
[color=darkred]FILE* freopen( const char* filename,
const char* mode,
FILE* fp );
I’m not working with any filenames here, only file descriptors and streams. Or is there something I am missing? What more can you teach me about proper usage of [color=darkred]freopen() in this sort of scenario?
Thanks for your help,
-=John
I am going to be AFK for about 2 weeks, and of course the last day before vacation… everyone wants a piece of me so I never got to fully test the printf() redirect thread.