delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/28/22:39:22

Date: Sun, 28 Jul 1996 21:26:39 -0500
Message-Id: <199607290226.VAA01065@smtp.utexas.edu>
Mime-Version: 1.0
To: djgpp AT delorie DOT com
From: Conrad Wei-Li Song <conradsong AT mail DOT utexas DOT edu>
Subject: Malloc and realloc pains...

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.

Perhaps someone can come up with a way to neatly fix the problem?

- Raw text -


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