diff --git a/fonctions.h b/fonctions.h index 7b00f9f..71786c0 100644 --- a/fonctions.h +++ b/fonctions.h @@ -31,6 +31,6 @@ void correction_txt(FILE*, struct node[]); void correction_mot(struct node[]); -void desalocationArbre(struct cell**); +void desallocationArbre(struct cell**); -void desalocationTableauArbre(struct node[]); \ No newline at end of file +void desallocationTableauArbre(struct node[]); \ No newline at end of file diff --git a/main.c b/main.c index 27cd9ea..cc27a09 100644 --- a/main.c +++ b/main.c @@ -27,7 +27,7 @@ int main(int argc, char* argv[]) { correction_txt(txt, tab_arbre); correction_mot(tab_arbre); - desalocationTableauArbre(tab_arbre); + desallocationTableauArbre(tab_arbre); printf("fini\n"); diff --git a/projetfinalaccent2.c b/projetfinalaccent2.c index c0e663d..4ec582b 100644 --- a/projetfinalaccent2.c +++ b/projetfinalaccent2.c @@ -194,20 +194,20 @@ void correction_mot(struct node tab_arbre_prcp[]) { } } -void desalocationArbre(struct cell** pL) { +void desallocationArbre(struct cell** pL) { if ((*pL) == NULL) return; - desalocationArbre(&(*pL)-> arbreSuivant); - desalocationArbre(&(*pL)-> arbre -> listeFils); + desallocationArbre(&(*pL)-> arbreSuivant); + desallocationArbre(&(*pL)-> arbre -> listeFils); free((*pL) -> arbre); free(*pL); } -void desalocationTableauArbre(struct node tab_arbre[]) { +void desallocationTableauArbre(struct node tab_arbre[]) { int i = 0; for(wchar_t u = 'a'; u <= A+5; u++) { //A+5 car ajout de 5 caractères de ponctuation en plus des lettres - desalocationArbre(&tab_arbre[i].listeFils); + desallocationArbre(&tab_arbre[i].listeFils); i++; } } -- libgit2 0.21.2