I'm using the lccwin32 compiler on win98se. I've notice when I use
realloc to down-size a memory block, that the resulting memory block
is often (not always) larger than the requested down-size. For
root = malloc (2000);
will allocate a 2000 byte block as shown by _msize (root). But then
root = realloc (root, (size_t) 2);
the size as shown by _msize (root) is 12 bytes rather than the 2
bytes that I expected.
I'm trying to understand how all this works and I was wondering if
anyone here could be so kind as to enlighten me.
Thanks for any comments.
Performing Arts in the Shoals Area
Shoals Symphony Orchestra at UNA: http://www.ShoalsSymphony.org/
Opera South: http://www.OperaSouth.org/