On Jan 9, 2008 1:33 PM, sivag9 <[EMAIL PROTECTED]> wrote:

>  it releases that memory ,my doubt is how free system call would knows
> how many bytes to free .I studied some where after allocating memory
> the adjacent cell contains the how many bytes it allocates .By using
> this free system call will works. My actual doubt is in my example
> after allocating 10 bytes , is 11'th byte contains the total bytes
> information?If not where total information resides?

You're right in that it keeps track, however how it does it can (and
does) vary by compiler.

I'd suggest reading through http://g.oswego.edu/dl/html/malloc.html

-- 
PJH

http://shabbleland.myminicity.com

Reply via email to