[][src]Function opensc_sys::list_concat

pub unsafe extern "C" fn list_concat(
    l1: *const list_t,
    l2: *const list_t,
    dest: *mut list_t
) -> c_int

concatenate two lists

Concatenates one list with another, and stores the result into a user-provided list object, which must be different from both the lists to concatenate. Attributes from the original lists are not cloned. The destination list referred is treated as virgin room: if it is an existing list containing elements, memory leaks will happen. It is OK to specify the same list twice as source, for "doubling" it in the destination.

@param l1 base list @param l2 list to append to the base @param dest reference to the destination list @return 0 for success, -1 for errors