Skip to main content

list_push_front

Function list_push_front 

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

Push data to the front of the list.

§UPSTREAM-PARITY

int xmlListPushFront(xmlListPtr l, void *data);

Returns 0 on success, -1 on failure.

§SAFETY

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