Skip to main content

list_merge

Function list_merge 

Source
pub unsafe fn list_merge(l1: *mut List, l2: *mut List)
Expand description

Merge two sorted lists into one.

§UPSTREAM-PARITY

void xmlListMerge(xmlListPtr l1, xmlListPtr l2);

Merges l2 into l1 in sorted order. l2 becomes empty.

§SAFETY

  • l1, l2 must be valid pointers to Lists, or NULL.