Each block allocated needs to remember its size, so we add a header to keep it in. HEADER_BLOCK and BLOCK_HEADER translate between a pointer to the header and a pointer to the block (what the caller of malloc gets). More...
Each block allocated needs to remember its size, so we add a header to keep it in. HEADER_BLOCK and BLOCK_HEADER translate between a pointer to the header and a pointer to the block (what the caller of malloc gets).