www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/05/12:08:18

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
To: Conrad Wei-Li Song <conradsong AT mail DOT utexas DOT edu>, djgpp AT delorie DOT com
From: Cesar Scarpini Rabak <csrabak AT dce03 DOT ipt DOT br>
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- Raw text -


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