Skip to main content

Get2DMem

Function Get2DMem 

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

Allocates memory for 2D array.

Dynamically allocates memory and returns pointer of type void ** for an array of size nrow x ncol. First index is row number: array[row][col] size is size of array element, psize is size of pointer to array element (eg sizeof(float *)).