diff --git a/find.c b/find.c index aeb0dfd..ccdc9df 100644 --- a/find.c +++ b/find.c @@ -22,6 +22,7 @@ int find_mot(struct node **tab_ptr_tree,char mot[],int size,int fl) ptr_node=ptr_node->fils[k]; break; } + if(k+1==ptr_node->nbr_fils)return 1; } } @@ -32,4 +33,4 @@ int find_mot(struct node **tab_ptr_tree,char mot[],int size,int fl) int find() { return 0; -} \ No newline at end of file +} -- libgit2 0.21.2