delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/12/17/12:20:38

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 <eliz AT is DOT elta DOT co DOT il>
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: <Pine.SUN.3.91.1011217191623.23711D-100000@is>
MIME-Version: 1.0
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

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);

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019