#ifndef BST_H #define BST_H typedef struct { struct node_t *root; unsigned long count; int (*printfn) (const void *); int (*comparefn) (const void *, const void *); } bst; int initBST (bst **, int (*) (const void *), int (*) (const void *, const void *)); int addBST (bst *, const void *); int printBST (const bst *); #define LEFT 1 #define RIGHT -1 #define MATCH 0 #define NULL_BST 1 #define NULL_ITEM_BST 2 #define DUPLICATE_ITEM_BST 3 #define BAD_COMPARE_BST 4 #endif