|
|
|
|
/home/brennan/n-sim/Vaike/linux/system-addons/networking/avl.c File Reference#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <syslog.h>
#include "avl.h"
Go to the source code of this file.
Define Documentation
#define avl_error |
( |
|
) |
syslog(LOG_ERR, __VA_ARGS__) |
|
|
Definition at line 57 of file avl.c. |
#define avl_free |
( |
ptr |
|
) |
free(ptr) |
|
#define avl_log |
( |
|
) |
syslog(LOG_INFO, __VA_ARGS__) |
|
#define avl_malloc |
( |
size |
|
) |
malloc(size) |
|
|
Definition at line 55 of file avl.c. |
#define return_errno |
( |
num |
|
) |
do { errno = num; return -1; } while (0) |
|
Enumeration Type Documentation
|
- Enumerator:
-
Definition at line 66 of file avl.c. |
Function Documentation
int avl_delete |
( |
void * |
elt, |
|
|
unsigned long |
key, |
|
|
struct avltree * |
tree |
|
) |
|
|
int avl_insert |
( |
void * |
elt, |
|
|
unsigned long |
key, |
|
|
struct avltree * |
tree |
|
) |
|
|
void avl_print |
( |
struct avltree * |
tree |
) |
|
|
void avl_print_list |
( |
struct avltree * |
tree |
) |
|
|
void* avl_retrieve |
( |
unsigned long |
key, |
|
|
struct avltree * |
tree |
|
) |
|
|
unsigned long avl_size |
( |
struct avltree * |
tree |
) |
|
|
void destroy_avltree |
( |
struct avlnode * |
root |
) |
|
|
|