Function gnunet_sys::GNUNET_xgrow_[][src]

pub unsafe extern "C" fn GNUNET_xgrow_(
    old: *mut *mut c_void,
    elementSize: usize,
    oldCount: *mut c_uint,
    newCount: c_uint,
    filename: *const c_char,
    linenumber: c_int
)

Grow an array, the new elements are zeroed out. Grows old by (*oldCount-newCount)*elementSize bytes and sets *oldCount to newCount.

Don’t call GNUNET_xgrow_ directly. Use the #GNUNET_array_grow macro.

@param old address of the pointer to the array *old may be NULL @param elementSize the size of the elements of the array @param oldCount address of the number of elements in the *old array @param newCount number of elements in the new array, may be 0 (then *old will be NULL afterwards) @param filename where is this call being made (for debugging) @param linenumber line where this call is being made (for debugging)