From c6a945134c85da577eb23e53031073da3e373eee Mon Sep 17 00:00:00 2001 From: bjeanlou Date: Thu, 4 Apr 2019 10:47:50 +0200 Subject: [PATCH] treeh.ch OK --- treeh.c | 3 ++- treeh.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/treeh.c b/treeh.c index f8f8d60..32e20fd 100644 --- a/treeh.c +++ b/treeh.c @@ -74,7 +74,8 @@ bool addto_tree(tree t,string s){ addto_tree(t->next[hash(s[0])],s+1,isIn); } void addto_tree2(tree t,string s){ - //faster than addto_treeused when it is knowned the word is not yet in dictionnary + //faster than addto_tree + //used when it is known the word is not yet in dictionnary if(s[0]=='\0'){ t->isEnd=true; return; diff --git a/treeh.h b/treeh.h index 7c9b0ec..804b1b4 100644 --- a/treeh.h +++ b/treeh.h @@ -26,7 +26,8 @@ bool is_end(tree); bool is_followed(tree);//tells if tree has following letters int hash(char); -void addto_tree(tree,char*,int); +void addto_tree(tree,string,int); +void addto_tree2(tree,string); void loadfrom_file(tree,FILE*); void loadfrom_keyboard(tree); -- libgit2 0.21.2