From 9cf519814591413493be10cfaa00853cb15e7a0b Mon Sep 17 00:00:00 2001 From: spew Date: Sat, 22 Apr 2017 13:59:37 -0500 Subject: libavl: lookup can return the closest match --- sys/include/avl.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/include/avl.h') 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*); -- cgit v1.2.3