Skip to main content

nros_platform_realloc

Function nros_platform_realloc 

Source
pub unsafe extern "C" fn nros_platform_realloc(
    ptr: *mut c_void,
    size: usize,
) -> *mut c_void
Expand description

Resize the block at ptr to size bytes. Equivalent to libc realloc: NULL ptr → fresh alloc; 0 size → free + return NULL. Preserves contents up to min(old, new).