Skip to main content

list_insert

Function list_insert 

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

Insert data into the sorted position.

§UPSTREAM-PARITY

int xmlListInsert(xmlListPtr l, void *data);

Inserts data in sorted order using the list’s comparator. Returns 0 on success, -1 on failure.

§SAFETY

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