TOC | Prev | Next

Other malloc forms

calloc(N,type) allocates N copies of a type, and zeroes the memory.

realloc(p, new_size) reallocates p to use new_size bytes.
It could expand in place, or it could allocate a new buffer and
copy the contents over. You don't know.

TOC | Prev | Next