Skip to main content

recalloc

Function recalloc 

Source
pub unsafe fn recalloc(p: *mut u8, count: usize, size: usize) -> *mut u8
Expand description

Grow or shrink an allocation to count * size bytes, zeroing any newly-exposed tail.

The rezalloc contract applies, including what is and is not zeroed. Thin wrapper around mi_recalloc; the element-count form exists to mirror calloc.

ยงSafety

Same contract as rezalloc.