Mail Archives: djgpp/1996/08/05/12:08:18
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 -