Added some comments.
FossilOrigin-Name: ecf1a2e8e71144a988348b29cc8e8b41fc078b02693071590d75df88c81c844c
This commit is contained in:
parent
99fb8907dc
commit
802dcce25a
@ -16,13 +16,23 @@
|
||||
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file
|
||||
* @brief Yet another AVL tree implementation
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
#include "avltree.h"
|
||||
|
||||
|
||||
/**
|
||||
* Create an AVL tree
|
||||
* @param cmp pointer compare function
|
||||
* @param del pointer to delete function which is called when an element will be deletet
|
||||
* @return pointer to an #avltree struct
|
||||
*/
|
||||
struct avltree * avltree_create(int (*cmp)(const void*,const void*),void(*del)(void*))
|
||||
{
|
||||
struct avltree * t = malloc(sizeof(struct avltree));
|
||||
|
Loading…
Reference in New Issue
Block a user