www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/27/19:05:07

Message-Id: <m0zC8Ic-000S4JC@inti.gov.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT gov DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
Organization: INTI
To: califax AT wupperonline DOT de (Klaus Petzold), djgpp AT delorie DOT com
Date: Thu, 27 Aug 1998 17:07:01 +0000
MIME-Version: 1.0
Subject: Re: question to malloc and free
In-reply-to: <35e59b79.420696@news.space.net>

califax AT wupperonline DOT de (Klaus Petzold) wrote:


> when I allocate a memory block with malloc and release it with free,
> how does free know how much it has to release? Stores malloc
> some information about the block?

Yes malloc stores this information at the beggining of the block.

SET 
------------------------------------ 0 --------------------------------
Visit my home page: http://set-soft.home.ml.org/
or
http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
ICQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013

- Raw text -


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