Folks

I know this might be a little off list but does anyone have a good way
(in C) of being able to switch debug output from a file to console?

I tired a method where I used freopen("CON","w+", stdout)but it always
seems to fail. I saw this on a website (stupidly I didn't bookmark it)
and the similar /dev/tty in Linux works great.( I have compile time
switches)

Is CON a legal special filename for Windows? Or is there something I'm
missing?

Mark



------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to