Calloc vs Malloc + Memset
So... why does
exist, if it's equivalent to these 2 lines? The C library is not known for its excessive focus on providing convenient shorthands!
It turns out there are actually two differences between calling
, versus calling
.
Ches Koblents
December 8, 2016