ft_calloc
Subject
Understandable explanation
By now you should have understand what the malloc()
function does, at least I hope. Otherwise, understand how malloc()
works and come back here.
I will mainly base my explanation on comparing calloc()
to malloc()
.
calloc()
works in the same way as malloc()
does, but the difference is that calloc()
sets all the memory bytes are set to 0
instead of staying as the gibberish that was there in memory before we allocated it.
Hints
ft_calloc.c
Commented solution
Last updated
Was this helpful?