Function gnunet_sys::GNUNET_xstrndup_[][src]

pub unsafe extern "C" fn GNUNET_xstrndup_(
    str_: *const c_char,
    len: usize,
    filename: *const c_char,
    linenumber: c_int
) -> *mut c_char

Dup partially a string. Don’t call GNUNET_xstrndup_ directly. Use the #GNUNET_strndup macro.

@param str string to duplicate @param len length of the string to duplicate @param filename where is this call being made (for debugging) @param linenumber line where this call is being made (for debugging) @return the duplicated string