4 ms·
Well for strdup, there is mulle_strdup. Who is Al ? :) There is nothing wrong with malloc hooks, but they are global and you can't isolate on a per data structu
by mulle_nat 10y ago
Well for strdup, there is mulle_strdup. Who is Al ? :)
There is nothing wrong with malloc hooks, but they are global and you can't isolate on a per data structure basis.
Also when you malloc you know it's malloc, but calling mulle_allocator_malloc it could be something else (your own memory manager). That's the decoupling aspect.