public
Description: Critbit trees in C
Homepage:
Clone URL: git://github.com/agl/critbit.git
critbit / critbit.h
100644 20 lines (14 sloc) 0.47 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef CRITBIT_H_
#define CRITBIT_H_
 
extern "C" {
 
typedef struct {
  void *root;
} critbit0_tree;
 
int critbit0_contains(critbit0_tree *t, const char *u);
int critbit0_insert(critbit0_tree *t, const char *u);
int critbit0_delete(critbit0_tree *t, const char *u);
void critbit0_clear(critbit0_tree *t);
int critbit0_allprefixed(critbit0_tree *t, const char *prefix,
                         int (*handle) (const char *, void *), void *arg);
 
};
 
#endif // CRITBIT_H_