summaryrefslogtreecommitdiffstats
path: root/trees.h
diff options
context:
space:
mode:
Diffstat (limited to 'trees.h')
-rw-r--r--trees.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/trees.h b/trees.h
new file mode 100644
index 0000000..93f63d9
--- /dev/null
+++ b/trees.h
@@ -0,0 +1,22 @@
+#ifndef _TREES_H_
+#define _TREES_H_
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+struct tnode
+{
+ char *text;
+
+ int count;
+ struct tnode *left;
+ struct tnode *right;
+};
+
+/* function prototypes */
+struct tnode *bintree_insert(struct tnode *, char *);
+void treeprint_inorder(struct tnode *);
+
+#endif
+