Skip to main content

list_remove_first

Function list_remove_first 

Source
pub unsafe fn list_remove_first(l: *mut List, data: *const c_void) -> c_int
Expand description

Remove the first matching element.

§UPSTREAM-PARITY

int xmlListRemoveFirst(xmlListPtr l, void *data);

Returns 0 on success, -1 if not found.

§SAFETY

  • l must be a valid pointer to a List, or NULL.