3 ms·
It gets even nastier with systems that care about where memory is allocated. Sometimes you really want to use a particular slab of memory for everything and not
by slaymaker1907 4y ago
It gets even nastier with systems that care about where memory is allocated. Sometimes you really want to use a particular slab of memory for everything and not just whatever malloc happens to return. You could pass in function pointers or something for malloc/free, but that makes your API even messier.