From e80093dea8dd68d5363ecb39c7bb84420644567b Mon Sep 17 00:00:00 2001 From: "loic.gottoh" Date: Tue, 11 Oct 2022 17:15:24 +0200 Subject: [PATCH 1/3] =?UTF-8?q?r=C3=A9solution=20du=20bug=20sur=20liste.c?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- liste.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/liste.c b/liste.c index ce30547..86a69e2 100755 --- a/liste.c +++ b/liste.c @@ -39,11 +39,10 @@ liste supprimer(liste l) { void afficherliste(liste l) { liste tmp = l; - do { + while (tmp->next != NULL) { affichage_voie(tmp->contenu); tmp=tmp->next; } - while (tmp->next != NULL); } int case_vide(liste l) { From c50c3e51c339862296db76e90ef7241581545723 Mon Sep 17 00:00:00 2001 From: "loic.gottoh" Date: Tue, 11 Oct 2022 17:26:16 +0200 Subject: [PATCH 2/3] remise du bug --- liste.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/liste.c b/liste.c index 86a69e2..ce30547 100755 --- a/liste.c +++ b/liste.c @@ -39,10 +39,11 @@ liste supprimer(liste l) { void afficherliste(liste l) { liste tmp = l; - while (tmp->next != NULL) { + do { affichage_voie(tmp->contenu); tmp=tmp->next; } + while (tmp->next != NULL); } int case_vide(liste l) { From 81585498bf867544bb173f90f08f5060d1348615 Mon Sep 17 00:00:00 2001 From: "loic.gottoh" Date: Tue, 11 Oct 2022 17:27:11 +0200 Subject: [PATCH 3/3] suppresion bug --- liste.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/liste.c b/liste.c index ce30547..86a69e2 100755 --- a/liste.c +++ b/liste.c @@ -39,11 +39,10 @@ liste supprimer(liste l) { void afficherliste(liste l) { liste tmp = l; - do { + while (tmp->next != NULL) { affichage_voie(tmp->contenu); tmp=tmp->next; } - while (tmp->next != NULL); } int case_vide(liste l) {