X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Date: Mon, 17 Dec 2001 19:17:07 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: GAMMELJL AT SLU DOT EDU cc: djgpp AT delorie DOT com Subject: Re: Use of mpf_out_str and mpf_input_str in Delorie port of gmp to DOS In-Reply-To: <01KBYZRCDVJM90RF1A@SLU.EDU> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Mon, 17 Dec 2001 GAMMELJL AT SLU DOT EDU wrote: > {cout<<"hello world"<<'\n'; //Writes "hello world" to screen > freopen("hi","w",stdout); //Redirects output to file hi > cout<<"hi world"<<'\n'; //Writes "hi world" to file hi > freopen("ho","w",stdout); //Redirects output to file ho > cout<<"ho world"<<'\n'; //Writes "ho world" to file ho > > //QUESTION: What do I put here so that the output of the next > //line appears on the screen again. freopen("/dev/tty", "w", stdout);