ftp.delorie.com/archives/browse.cgi | search |
Date: | Wed, 2 Nov 94 23:21:16 -0500 |
From: | dj AT stealth DOT ctron DOT com (DJ Delorie) |
To: | ronis AT onsager DOT chem DOT mcgill DOT ca |
Cc: | djgpp AT sun DOT soe DOT clarkson DOT edu |
Subject: | Re: realloc |
> If I change the size of a malloc'd block of memory using realloc, is > the data in the new block corresponding the the smaller of the new or > old block sizes unchanged? (It is under MSC, and SUN). It is unchanged. This, of course, can be proven with a small test program also. ANSI states that the data is unchanged also. DJ
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |