delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/05/25/08:45:59

Date: Wed, 25 May 94 08:17:15 -0400
From: dj AT ctron DOT com (DJ Delorie)
To: acmq AT gamma DOT coe DOT ufrj DOT br
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: memory allocation

malloc stores some information just outside of the allocated range so
that when you free it it knows what to do with it.  I hope you weren't
confusing this for the actual allocated memory.  Malloc returns a
pointer to a chunk of memory, just like in Unix.  Any other semantics
of the meaning of this memory are entirely up to the application.


- Raw text -


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