aboutsummaryrefslogtreecommitdiff
path: root/strbst.h
diff options
context:
space:
mode:
Diffstat (limited to 'strbst.h')
-rw-r--r--strbst.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/strbst.h b/strbst.h
index 4605bcf..a58b8d3 100644
--- a/strbst.h
+++ b/strbst.h
@@ -1,6 +1,18 @@
#ifndef __STRBST_H__
#define __STRBST_H__
+typedef struct strbstnode {
+ char* ind;
+ void* data;
+ struct strbstnode* left;
+ struct strbstnode* right;
+ int ht;
+} strbstnode;
+
+struct strbst {
+ strbstnode* head;
+};
+
typedef struct strbst strbst;
strbst* newbst(void);