This commit is contained in:
Maryna Kravtsova 2020-11-05 15:51:07 +01:00
parent 468b37d1be
commit d4271c3370

View File

@ -76,10 +76,14 @@ struct car* clear_train(struct car* first, const char* target) {
struct car* third = prev->next->next;
free(prev->next);
prev->next = third;
return first;
}
prev = prev->next;
}
if(prev->next->next == NULL) {
int x = strcmp(first->value, target);
if(x == 0){