diff --git a/find.c b/find.c index 45843e6..aeb0dfd 100644 --- a/find.c +++ b/find.c @@ -3,7 +3,11 @@ int find_mot(struct node **tab_ptr_tree,char mot[],int size,int fl) { - if(size==0 || (size==1 && tab_ptr_tree[fl]!=NULL))return 0;//vrais + if(size==1 && tab_ptr_tree[fl]!=NULL) + { + if(tab_ptr_tree[fl]->fin==0)return 1; + else return 0;//vrais + } if(size==1 && tab_ptr_tree[fl]==NULL)return 1;//faux struct node *ptr_node = tab_ptr_tree[fl]; -- libgit2 0.21.2