[][src]Function ejdb_sys::bson_realloc

pub unsafe extern "C" fn bson_realloc(
    ptr: *mut c_void,
    size: c_int
) -> *mut c_void

Changes the size of allocated memory and checks return value, exiting fatally if realloc() fails.

@param ptr pointer to the space to reallocate. @param size bytes to allocate.

@return a pointer to the allocated memory.

@sa realloc()