KoblentsBlog Photography
Contact About
Ches
Calloc vs Malloc + Memset
So... why does
calloc
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
calloc
, versus calling
malloc + memset
.
Follow External URL ...
Ches Koblents
December 8, 2016
 
« Newer Older »
© Copyright Koblents.com, 2012-2017