clear
This commit is contained in:
parent
468b37d1be
commit
d4271c3370
@ -75,11 +75,15 @@ struct car* clear_train(struct car* first, const char* target) {
|
||||
if(x == 0){
|
||||
struct car* third = prev->next->next;
|
||||
free(prev->next);
|
||||
prev->next = third;
|
||||
prev->next = third;
|
||||
return first;
|
||||
|
||||
}
|
||||
prev = prev->next;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
if(prev->next->next == NULL) {
|
||||
int x = strcmp(first->value, target);
|
||||
if(x == 0){
|
||||
|
Loading…
Reference in New Issue
Block a user