Commit f3d943a3f76c120dc8c86d37508c102475c465b2

Authored by tvieuble
1 parent fdf62f79

correction faute

Showing 3 changed files with 8 additions and 8 deletions   Show diff stats
fonctions.h
... ... @@ -31,6 +31,6 @@ void correction_txt(FILE*, struct node[]);
31 31  
32 32 void correction_mot(struct node[]);
33 33  
34   -void desalocationArbre(struct cell**);
  34 +void desallocationArbre(struct cell**);
35 35  
36   -void desalocationTableauArbre(struct node[]);
37 36 \ No newline at end of file
  37 +void desallocationTableauArbre(struct node[]);
38 38 \ No newline at end of file
... ...
... ... @@ -27,7 +27,7 @@ int main(int argc, char* argv[]) {
27 27  
28 28 correction_txt(txt, tab_arbre);
29 29 correction_mot(tab_arbre);
30   - desalocationTableauArbre(tab_arbre);
  30 + desallocationTableauArbre(tab_arbre);
31 31  
32 32 printf("fini\n");
33 33  
... ...
projetfinalaccent2.c
... ... @@ -194,20 +194,20 @@ void correction_mot(struct node tab_arbre_prcp[]) {
194 194 }
195 195 }
196 196  
197   -void desalocationArbre(struct cell** pL) {
  197 +void desallocationArbre(struct cell** pL) {
198 198  
199 199 if ((*pL) == NULL) return;
200 200  
201   - desalocationArbre(&(*pL)-> arbreSuivant);
202   - desalocationArbre(&(*pL)-> arbre -> listeFils);
  201 + desallocationArbre(&(*pL)-> arbreSuivant);
  202 + desallocationArbre(&(*pL)-> arbre -> listeFils);
203 203 free((*pL) -> arbre);
204 204 free(*pL);
205 205 }
206 206  
207   -void desalocationTableauArbre(struct node tab_arbre[]) {
  207 +void desallocationTableauArbre(struct node tab_arbre[]) {
208 208 int i = 0;
209 209 for(wchar_t u = 'a'; u <= A+5; u++) { //A+5 car ajout de 5 caractères de ponctuation en plus des lettres
210   - desalocationArbre(&tab_arbre[i].listeFils);
  210 + desallocationArbre(&tab_arbre[i].listeFils);
211 211 i++;
212 212 }
213 213 }
... ...