back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/rb_tree_main.c
diff options
context:
space:
mode:
authorscratko <m@scratko.xyz>2024-03-30 19:26:21 +0300
committerscratko <m@scratko.xyz>2024-03-30 19:26:21 +0300
commit2eebf06ade7a316f057334dd6d76b6af22c8ff01 (patch)
treeae591df0dea6c03c93c0406e5bdcd81ad55b7a5a /rb_tree_main.c
parentff69b8a8f2997c794ed4790dd84d2b3657f2f86e (diff)
downloadred-black-tree-2eebf06ade7a316f057334dd6d76b6af22c8ff01.tar.gz
red-black-tree-2eebf06ade7a316f057334dd6d76b6af22c8ff01.tar.bz2
red-black-tree-2eebf06ade7a316f057334dd6d76b6af22c8ff01.zip
Minor changes
Extended desctiption. Cleaning a terminal history before dispaing of the tree is added to the main file. Fixed some function declaration.
Diffstat (limited to 'rb_tree_main.c')
-rw-r--r--rb_tree_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rb_tree_main.c b/rb_tree_main.c
index e90910d..66ba68d 100644
--- a/rb_tree_main.c
+++ b/rb_tree_main.c
@@ -73,6 +73,8 @@ int main()
CLEAR_BUFFER
break;
case print:
+ /* clearing terminal history */
+ printf("\033c");
if(new_tree)
rb_tree_print(new_tree, new_tree->root);
break;