Skip to main content

Get2DRowColZeroMem

Function Get2DRowColZeroMem 

Source
pub unsafe extern "C" fn Get2DRowColZeroMem(
    nrow: c_long,
    ncol: c_long,
    psize: c_int,
    size: usize,
) -> *mut *mut c_void
Expand description

Allocates memory for 2D array. The array will have 2*nrow-1 rows. The first nrow-1 rows will have ncol columns, and the rest will have ncol-1 columns. Memory is initialized to zero.