Question 7.26

How does free know how many bytes to free?


The malloc/free implementation remembers the size of each block allocated and returned, so it is not necessary to remind it of the size when freeing.


Read sequentially: prev next up top


This page by Steve Summit // Copyright 1995 // mail feedback