From c7412d4813ccb994fdd219f421eaba8bb37831dd Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Mon, 13 Jun 2011 18:30:37 +0200 Subject: Bundle libcnary for better packaging --- libcnary/cnary.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 libcnary/cnary.c (limited to 'libcnary/cnary.c') diff --git a/libcnary/cnary.c b/libcnary/cnary.c new file mode 100644 index 0000000..3e55fce --- /dev/null +++ b/libcnary/cnary.c @@ -0,0 +1,30 @@ +/* + * cnary.c + * + * Created on: Mar 9, 2011 + * Author: posixninja + */ + +#include + +#include "node.h" + +int main(int argc, char* argv[]) { + puts("Creating root node"); + node_t* root = node_create(NULL, NULL); + + puts("Creating child 1 node"); + node_t* one = node_create(root, NULL); + puts("Creating child 2 node"); + node_t* two = node_create(root, NULL); + + puts("Creating child 3 node"); + node_t* three = node_create(one, NULL); + + puts("Debugging root node"); + node_debug(root); + + puts("Destroying root node"); + node_destroy(root); + return 0; +} -- cgit v1.1-32-gdbae