Re: How does free() know how many bytes to free???



Josef Moellers <josef.moellers@xxxxxxxxxxxxxxxxxxx> wrote:

The size is stored in bytes just before the useful area. Note that
additional bits are used for other purposes.

That's one possible implementation. It's certainly not the ONLY possible
implementation.
--
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
.