🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #435

Re: Shrinking with realloc

#435
From: Doug Gwyn
Date: Thu, 10 Aug 1989 15:18
6 lines
706 bytes
In article <26328@shemp.CS.UCLA.EDU> signup@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.
Technical Details
Message-ID: <10698@smoke.BRL.MIL>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ginosko!aplcen!haven!adm!smoke!gwyn
References: <26328@shemp.CS.UCLA.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ginosko!aplcen!haven!adm!smoke!gwyn
From: gwyn@smoke.BRL.MIL (Doug Gwyn)
Newsgroups: comp.std.c
Subject: Re: Shrinking with realloc
Message-ID: <10698@smoke.BRL.MIL>
Date: 10 Aug 89 15:18:49 GMT
References: <26328@shemp.CS.UCLA.EDU>
Reply-To: gwyn@brl.arpa (Doug Gwyn)
Organization: Ballistic Research Lab (BRL), APG, MD.
Lines: 6