diff options
Diffstat (limited to 'src/kdtree.c')
-rw-r--r-- | src/kdtree.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kdtree.c b/src/kdtree.c index ab5aa98..551bc5c 100644 --- a/src/kdtree.c +++ b/src/kdtree.c @@ -1,5 +1,9 @@ #include "kdtree.h" +void print_node(kdtree_t *tree) { + printf("[%d,%d] %ld\n", tree->x, tree->y, (long)tree->value); +} + kdtree_t * kdtree_create(int x, int y, char * value) { kdtree_t * tree = malloc(sizeof(kdtree_t)); tree->x = x; |