| delorie.com/archives/browse.cgi | search |
| To: | ronis AT onsager DOT chem DOT mcgill DOT ca (David Ronis) |
| Cc: | djgpp AT sun DOT soe DOT clarkson DOT edu |
| Subject: | Re: realloc |
| Date: | Thu, 03 Nov 94 08:55:43 +0200 |
| From: | "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> |
> 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). I believe, this is a requirement of the ANSI C library, so it should work in any C compiler. Otherwise, realloc() doesn't make any sense.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |