Date: Mon, 5 Aug 1996 15:21:04 -0300 Message-Id: <1.5.4.16.19960805124007.373f4c4a@dmeasc.rc.ipt.br> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: Conrad Wei-Li Song , djgpp AT delorie DOT com From: Cesar Scarpini Rabak Subject: Re: Malloc and realloc pains... At 21:26 28/07/96 -0500, Conrad Wei-Li Song wrote: >Just so everyone's aware. There are quirks in which different libraries >treat malloc and realloc routines. > >Borland returns a NULL pointer on a malloc( (size_t)(0) ); >Microsoft does not deallocate the passed memory block on a failed realloc. Why it should? Is there anything new in this area in the Standard? > >Perhaps someone can come up with a way to neatly fix the problem? > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cesar Scarpini Rabak E-mail: csrabak AT ipt DOT br DME/ASC Phone: 55-11-268-35221Ext.350 IPT - Instituto de Pesquisas Tecnologicas Fax: 55-11-268-5996 Av. Prof. Almeida Prado, 532. Sao Paulo - SP 05508-901 BRAZIL ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~