Skip to content

Commit

Permalink
Missed critbit.h (thanks to sfossen for the heads up)
Browse files Browse the repository at this point in the history
  • Loading branch information
agl committed Sep 30, 2008
1 parent 4d2e259 commit 7f2e381
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions critbit.h
@@ -0,0 +1,19 @@
#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_

0 comments on commit 7f2e381

Please sign in to comment.