2.4.1.3 Modification¶
-
ZixStatus zix_btree_insert(ZixBTree *t, void *e)¶
Insert the element
eintot.- Returns:
ZixStatus.ZIX_STATUS_SUCCESSon success,ZixStatus.ZIX_STATUS_EXISTS, orZixStatus.ZIX_STATUS_NO_MEM.
-
ZixStatus zix_btree_remove(ZixBTree *t, const void *e, void **out, ZixBTreeIter *next)¶
Remove the element
efromt.- Parameters:
t – Tree to remove from.
e – Value to remove.
out – Set to point to the removed pointer (which may not equal
e).next – On successful return, set to point at element immediately following
e.
- Returns:
ZixStatus.ZIX_STATUS_SUCCESSon success, orZixStatus.ZIX_STATUS_NOT_FOUND.