the.com/calloc
malloc's tidy sibling — allocates memory and scrubs it clean before handing it over.
means a c function that allocates memory for an array and zeroes every byte, unlike malloc which leaves it dirty.
from from clear allocation, or contiguous allocation depending who you ask — introduced with c's standard library to fix the fact that raw memory is just whatever garbage the previous tenant left behind.
two argstakes count and size separately, unlike malloc's one
overflow checkguards against count times size overflowing, malloc does not
zeroed memoryevery bit set to zero, not just cleared pointers
slower cousinzeroing costs time malloc skips entirely