Life after free?
Peter da Silva
peter at ficc.ferranti.com
Mon Oct 8 06:55:32 AEST 1990
In article <6573.tnews at templar.actrix.co.nz> jbickers at templar.actrix.co.nz (John Bickers) writes:
> Quoted from - kaleb at thyme.jpl.nasa.gov (Kaleb Keithley ):
> > Which OS is that on? At the risk of exhibiting "small world" syndrome,
> > in UNIX, malloc and free work within the confines of the heap, which
> The Amiga's Exec, for example.
In every implementation of malloc and free I know of on the Amiga, a free
does not return the pointer to the O/S. A FreeMem does, but that's not a
standard C routine. And I'm pretty sure a FreeMem doesn't scribble on the
data freed, nor does AllocMem guarantee an empty block.
--
Peter da Silva. `-_-'
+1 713 274 5180. 'U`
peter at ferranti.com
More information about the Comp.lang.c
mailing list