Commit a55939084d36029901ef2df6fab25e8fdfa4c005

Authored by Thorsieger
1 parent 264d2b59

correction debug

Showing 1 changed file with 5 additions and 1 deletions   Show diff stats
... ... @@ -3,7 +3,11 @@
3 3  
4 4 int find_mot(struct node **tab_ptr_tree,char mot[],int size,int fl)
5 5 {
6   - if(size==0 || (size==1 && tab_ptr_tree[fl]!=NULL))return 0;//vrais
  6 + if(size==1 && tab_ptr_tree[fl]!=NULL)
  7 + {
  8 + if(tab_ptr_tree[fl]->fin==0)return 1;
  9 + else return 0;//vrais
  10 + }
7 11 if(size==1 && tab_ptr_tree[fl]==NULL)return 1;//faux
8 12  
9 13 struct node *ptr_node = tab_ptr_tree[fl];
... ...