aboutsummaryrefslogtreecommitdiff
path: root/Computer_Science/data_structures/chapter_4/print_ascii_tree.c
diff options
context:
space:
mode:
authorSteve Lee <me@xiangyangli.com>2017-12-10 22:57:14 +0800
committerSteve Lee <me@xiangyangli.com>2017-12-10 22:57:14 +0800
commitb9659f0ae3b4766cccea4f6f62d883cd61f98620 (patch)
treed485d99ac36651950a58f9867619eb3bd77143b2 /Computer_Science/data_structures/chapter_4/print_ascii_tree.c
parent1ab42d462e335898902c6513c7f71c5a591c945a (diff)
download42-b9659f0ae3b4766cccea4f6f62d883cd61f98620.tar.xz
42-b9659f0ae3b4766cccea4f6f62d883cd61f98620.zip
avl_tree impl
Diffstat (limited to 'Computer_Science/data_structures/chapter_4/print_ascii_tree.c')
-rw-r--r--Computer_Science/data_structures/chapter_4/print_ascii_tree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Computer_Science/data_structures/chapter_4/print_ascii_tree.c b/Computer_Science/data_structures/chapter_4/print_ascii_tree.c
index f2e9839..7b71d27 100644
--- a/Computer_Science/data_structures/chapter_4/print_ascii_tree.c
+++ b/Computer_Science/data_structures/chapter_4/print_ascii_tree.c
@@ -2,7 +2,7 @@
#include <string.h>
#include <stdlib.h>
-#include "binary_search_tree.h"
+#include "avl_tree.h"
#include "print_ascii_tree.h"
struct asciinode_struct
@@ -256,6 +256,7 @@ void print_ascii_tree(Tree t)
asciinode *proot;
int xmin, i;
if (t == NULL) return;
+ printf("\n");
proot = build_ascii_tree(t);
compute_edge_lengths(proot);
for (i=0; i<proot->height && i < MAX_HEIGHT; i++)