diff options
author | spew <devnull@localhost> | 2017-04-22 13:59:37 -0500 |
---|---|---|
committer | spew <devnull@localhost> | 2017-04-22 13:59:37 -0500 |
commit | 9cf519814591413493be10cfaa00853cb15e7a0b (patch) | |
tree | c4ad9e0e9ab31887432a8f707ae7c4fcc853c588 /sys/include/avl.h | |
parent | f2b7f24e4e14099251dd0ed8e7e13d7ca466b0cf (diff) |
libavl: lookup can return the closest match
Diffstat (limited to 'sys/include/avl.h')
-rw-r--r-- | sys/include/avl.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/include/avl.h b/sys/include/avl.h index 49b61fbb6..be7b18a5c 100644 --- a/sys/include/avl.h +++ b/sys/include/avl.h @@ -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*); |