Function gnunet_sys::GNUNET_xnew_array_2d_[][src]

pub unsafe extern "C" fn GNUNET_xnew_array_2d_(
    n: usize,
    m: usize,
    elementSize: usize,
    filename: *const c_char,
    linenumber: c_int
) -> *mut *mut c_void

Allocate memory for a two dimensional array in one block and set up pointers. Aborts if no more memory is available. Don’t use GNUNET_xnew_array_2d_ directly. Use the #GNUNET_new_array_2d macro. The memory of the elements will be zero’ed out.

@param n size of the first dimension @param m size of the second dimension @param elementSize size of a single element in bytes @param filename where is this call being made (for debugging) @param linenumber line where this call is being made (for debugging) @return allocated memory, never NULL