[fpc-devel] ReallocMem with CMem

Micha Nelissen micha at neli.hopto.org
Wed Mar 8 18:19:40 CET 2006


On Wed, 8 Mar 2006 18:10:38 +0100 (CET)
Daniƫl Mantione <daniel.mantione at freepascal.org> wrote:

> 
> 
> Op Wed, 8 Mar 2006, schreef Micha Nelissen:
> 
> > Shouldn't ReallocMem in CMem zero the newly allocated bytes ?
> 
> No, it is the responsibility of the programmer.

Nope. At least the compiler depends on it being zeroed. The FPC heap
manager zeroes it, as well.

Micha



More information about the fpc-devel mailing list