From 535859a615f82ffd794eb2ca894c30f7f9a17946 Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Tue, 3 Nov 2020 21:36:56 +0100 Subject: [PATCH] clear --- cv5/a_train.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cv5/a_train.c b/cv5/a_train.c index c54c268..d8fc8bc 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -81,7 +81,7 @@ struct car* clear_train(struct car* first, const char* target) { else{ struct car* this = first; while(this != NULL){ - while(this != NULL){ + //while(this != NULL){ int x = strcmp(this->value, target); if(x == 0){ first = this->next; @@ -92,7 +92,7 @@ struct car* clear_train(struct car* first, const char* target) { return first; } this = this->next; - } + //} /*int x = strcmp(this->value, target); if(x == 0){ struct car* curr = first;