X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Message-ID: <3C6A8EFD.76FD712E@yahoo.com> From: CBFalconer Organization: Ched Research X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: Malloc/free DJGPP code References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 20 Date: Wed, 13 Feb 2002 16:21:08 GMT NNTP-Posting-Host: 12.90.173.161 X-Complaints-To: abuse AT worldnet DOT att DOT net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1013617268 12.90.173.161 (Wed, 13 Feb 2002 16:21:08 GMT) NNTP-Posting-Date: Wed, 13 Feb 2002 16:21:08 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eli Zaretskii wrote: > > 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. Got it guys. Next try coming up soon. Thanks. -- Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT XXXXworldnet DOT att DOT net) Available for consulting/temporary embedded and systems. (Remove "XXXX" from reply address. yahoo works unmodified) mailto:uce AT ftc DOT gov (for spambots to harvest)