avltree_insert.c (200B)
1 /* ISC license. */ 2 3 #include <skalibs/avltree.h> 4 5 int avltree_insert (avltree *t, uint32_t d) 6 { 7 uint32_t i ; 8 if (!avltree_newnode(t, d, &i)) return 0 ; 9 avltree_insertnode(t, i) ; 10 return 1 ; 11 }
skalibsMirror/fork of https://skarnet.org/software/skalibs/ | |
git clone https://ccx.te2000.cz/git/skalibs | |
Log | Files | Refs | README | LICENSE |