[fpc-pascal] Does ReallocMem(p,0) always set p to nil?
vsnijders at quicknet.nl
Thu May 3 20:35:55 CEST 2007
Consider this piece of code:
p := getmem(100);
p := nil;
Do I need to do p:=nil, if I want to be sure that p contains nil?
I saw that both system.SysReAllocMem and cmem.CReAllocMem do this, is
size=0, but the docs at
mention this, so I don't know if I can be trust that is the case for
always for all memory managers.
More information about the fpc-pascal