libavl: lookup can return the closest match
This commit is contained in:
parent
f2b7f24e4e
commit
9cf5198145
9 changed files with 34 additions and 25 deletions
|
@ -15,8 +15,9 @@ struct Avltree {
|
|||
Avl *root;
|
||||
};
|
||||
|
||||
Avltree *avlcreate(int(*cmp)(Avl*, Avl*));
|
||||
Avl *avllookup(Avltree*, Avl*);
|
||||
Avltree *avlinit(Avltree*, int(*)(Avl*, Avl*));
|
||||
Avltree *avlcreate(int(*)(Avl*, Avl*));
|
||||
Avl *avllookup(Avltree*, Avl*, int);
|
||||
Avl *avldelete(Avltree*, Avl*);
|
||||
Avl *avlinsert(Avltree*, Avl*);
|
||||
Avl *avlnext(Avl*);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue