aboutsummaryrefslogtreecommitdiff
path: root/strbst.c
diff options
context:
space:
mode:
Diffstat (limited to 'strbst.c')
-rw-r--r--strbst.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/strbst.c b/strbst.c
index e4494ab..ff7f1b7 100644
--- a/strbst.c
+++ b/strbst.c
@@ -9,7 +9,7 @@
typedef char height;
-typedef struct strbstnode{
+typedef struct strbstnode {
char* ind;
void* data;
struct strbstnode* left;
@@ -17,6 +17,10 @@ typedef struct strbstnode{
int ht;
} strbstnode;
+struct strbst {
+ strbstnode* head;
+};
+
strbst* newbst(void) {
strbst* out = malloc(sizeof(strbst));
out->head = NULL;