This commit is contained in:
Anton Dolozin 2025-10-28 18:03:12 +01:00
parent aa583c302e
commit a7b831eab5

View File

@ -52,6 +52,9 @@ struct car* clear_train(struct car* first, const char* target) {
}
else if(first->next == NULL && strcmp(first->value, target) != 0){
return first;
}
if(first->next->next == NULL && strcmp(first->value, target) == 0){
}
struct car* temp = first;
struct car* next = first->next;
@ -69,6 +72,6 @@ struct car* clear_train(struct car* first, const char* target) {
}
return first;
return temp;
}