Skip to main content

Free2DArray

Function Free2DArray 

Source
pub unsafe extern "C" fn Free2DArray(
    array: *mut *mut c_void,
    nrow: c_uint,
) -> c_int
Expand description

This function frees the dynamically allocated memory for a 2D array. Pass in a pointer to a pointer cast to a void **. The function assumes the array is of the form arr[rows][cols] so that nrow is the number of elements in the pointer array.