aboutsummaryrefslogtreecommitdiff
path: root/strbst.h
diff options
context:
space:
mode:
Diffstat (limited to 'strbst.h')
-rw-r--r--strbst.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/strbst.h b/strbst.h
index a58b8d3..7dbbae1 100644
--- a/strbst.h
+++ b/strbst.h
@@ -3,17 +3,15 @@
typedef struct strbstnode {
char* ind;
- void* data;
+ void* data; // as used, always link*
struct strbstnode* left;
struct strbstnode* right;
int ht;
} strbstnode;
-struct strbst {
+typedef struct strbst {
strbstnode* head;
-};
-
-typedef struct strbst strbst;
+} strbst;
strbst* newbst(void);