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;