Well, I guess you're right. I got to the idea of the "subblocks" while reading this:
void *calloc(size_t n, size_t s) - Allocates space for n objects of size s. The space is initialised to all bits zero.
I found the later here:
http://www.scit.wlv.ac.uk/~jphb/spos/notes/alloc.html#examples...
Hi everyone,
I'm going to tell you how I think calloc() works. If I'm wrong, and I think I am because it doesn't work the way I expect, PLEASE try to explain where my mistake is. Thank you all in advance!
So what we have is void *calloc( size_t num, size_t size );
According to me, the later...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.