delorie.com/archives/browse.cgi | search |
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 <eliz AT is DOT elta DOT co DOT il> |
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: | <Pine.SUN.3.91.1020213162355.18549C-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 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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |