diff options
author | c+1 | 2023-05-04 13:33:09 -0400 |
---|---|---|
committer | c+1 | 2023-05-04 13:33:09 -0400 |
commit | 3d9113f59703fbddc34aa59bfe829272070f3ff8 (patch) | |
tree | f83c487a31e6a042bd4d04fb3c4baee8ec40335f | |
parent | 8dcd50ec328a70910ca29491f2cf36d763cdd80f (diff) |
grow trees
-rw-r--r-- | src/include/tree.h | 2 | ||||
-rw-r--r-- | src/tree.c | 7 |
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; +} |