X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Date: Wed, 13 Feb 2002 16:24:55 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: djgpp AT delorie DOT com Subject: Re: Malloc/free DJGPP code In-Reply-To: <200202131401.g1DE1mr04973@envy.delorie.com> 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 Wed, 13 Feb 2002, DJ Delorie wrote: > If you > really want to do this, call setbuf(stdout,0) at the beginning of your > program (stderr too) to avoid the need for a buffer. And if unbuffered I/O is too slow, call setvbuf with a suitable buffer instead. That should avoid the need to call malloc the first time printf is called.