[][src]Function opensc_sys::list_delete

pub unsafe extern "C" fn list_delete(
    l: *mut list_t,
    data: *const c_void
) -> c_int

expunge the first found given element from the list.

Inspects the given list looking for the given element; if the element is found, it is removed. Only the first occurrence is removed. If a comparator function was not set, elements are compared by reference. Otherwise, the comparator is used to match the element.

@param l list to operate @param data reference of the element to search for @return 0 on success. Negative value on failure

@see list_attributes_comparator() @see list_delete_at()