Added some comments.

FossilOrigin-Name: ecf1a2e8e71144a988348b29cc8e8b41fc078b02693071590d75df88c81c844c
This commit is contained in:
7u83@mail.ru 2015-03-29 17:22:38 +00:00
parent 99fb8907dc
commit 802dcce25a
1 changed files with 11 additions and 1 deletions

View File

@ -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));