Koblents
→
Blog
Photography
Contact
About
Ches Koblents
»
Links
»
December 2016
Calloc vs Malloc + Memset
Published Dec 8, 2016
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 ...
« January 2017
November 2016 »
© Copyright Koblents.com, 2012-2024