www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/07/13/15:39:18

Date: Thu, 13 Jul 2000 15:38:24 -0400
Message-Id: <200007131938.PAA26113@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <8kkv0e$4co$1@geraldo.cc.utexas.edu> (yosuke@ccwf.cc.utexas.edu)
Subject: Re: redir.exe question
References: <8kkv0e$4co$1 AT geraldo DOT cc DOT utexas DOT edu>
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

stderr is unbuffered by default, but stdout is line buffered if the
output is the screen or *block* buffered if the output is a file
(i.e. redirected).  The only way to avoid this is to use one of the
buffer-setting functions (setbuf, setbuffer, setvbuf) to change the
output buffering of stderr and/or stdout.

- Raw text -


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