aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/include/tree.h2
-rw-r--r--src/tree.c7
2 files changed, 8 insertions, 1 deletions
diff --git a/src/include/tree.h b/src/include/tree.h
index 816243c..9ba713b 100644
--- a/src/include/tree.h
+++ b/src/include/tree.h
@@ -20,6 +20,6 @@ typedef struct TREE_STRUC {
} TREE_t;
-TREE_t tree_init(int type);
+TREE_t* tree_init(int type);
#endif
diff --git a/src/tree.c b/src/tree.c
new file mode 100644
index 0000000..6867949
--- /dev/null
+++ b/src/tree.c
@@ -0,0 +1,7 @@
+#include "include/tree.h"
+
+TREE_t* tree_init(int type) {
+ TREE_t* tree = calloc(1, sizeof(struct TREE_STRUC));
+
+ return tree;
+}