Function gnunet_sys::GNUNET_xmalloc_[][src]

pub unsafe extern "C" fn GNUNET_xmalloc_(
    size: usize,
    filename: *const c_char,
    linenumber: c_int
) -> *mut c_void

Allocate memory. Checks the return value, aborts if no more memory is available. Don’t use GNUNET_xmalloc_ directly. Use the #GNUNET_malloc macro. The memory will be zero’ed out.

@param size number of bytes to allocate @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