3 ms·
> why do you provide implementations for calloc and strdup instead of letting them be set as well. For me personally it's because I never use calloc religiousl
by the_mitsuhiko 13y ago
> why do you provide implementations for calloc and strdup instead of letting them be set as well.
For me personally it's because I never use calloc religiously. I implement calloc so that I can forward those allocators to my dependencies (like curl). I guess you have a point there.
With regards to strdup: My version changes the interface in that it's allowed to pass NULL through it in my own code. I know I did not do that in the blog post because I did not want to start a discussion about that API change :-)
- adsche 13y agoThanks for the answers. Great writeup altogether :-) test.py sounds interesting, maybe I'll look into that some time.