Shrinking with realloc

Doug Gwyn gwyn at smoke.BRL.MIL
Fri Aug 11 01:18:49 AEST 1989


In article <26328 at shemp.CS.UCLA.EDU> signup at CS.UCLA.EDU writes:
>If realloc is used to shrink a chunk of allocated storage, is it guaranteed
>by the standard that the storage won't be moved?

No, the storage is always potentially subject to being moved by realloc(),
perhaps as part of the malloc package's grand allocation scheme.



More information about the Comp.std.c mailing list