Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" 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 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: question to malloc and free In-reply-to: <35e59b79.420696@news.space.net> Precedence: bulk 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