Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

24 lines
507 B

  1. #ifndef CRITBIT_H_
  2. #define CRITBIT_H_
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. typedef struct {
  7. void *root;
  8. } critbit0_tree;
  9. int critbit0_contains(critbit0_tree *t, const char *u);
  10. int critbit0_insert(critbit0_tree *t, const char *u);
  11. int critbit0_delete(critbit0_tree *t, const char *u);
  12. void critbit0_clear(critbit0_tree *t);
  13. int critbit0_allprefixed(critbit0_tree *t, const char *prefix,
  14. int (*handle) (const char *, void *), void *arg);
  15. #ifdef __cplusplus
  16. };
  17. #endif
  18. #endif