From 3d9113f59703fbddc34aa59bfe829272070f3ff8 Mon Sep 17 00:00:00 2001 From: c+1 Date: Thu, 4 May 2023 13:33:09 -0400 Subject: grow trees --- src/include/tree.h | 2 +- src/tree.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 src/tree.c (limited to 'src') 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; +} -- cgit v1.2.3