Function jemalloc_sys::calloc

source ·
pub unsafe extern "C" fn calloc(
    number: size_t,
    size: size_t
) -> *mut c_void
Expand description

Allocates zero-initialized space for an array of number objects, each of whose size is size.

The result is identical to calling malloc with an argument of number * size, with the exception that the allocated memory is explicitly initialized to zero bytes.

Note: zero-initialized memory need not be the same as the representation of floating-point zero or a null pointer constant.