clear
This commit is contained in:
parent
3319922653
commit
4257bca064
@ -69,7 +69,7 @@ struct car* clear_train(struct car* first, const char* target) {
|
|||||||
struct car* third = prev->next->next;
|
struct car* third = prev->next->next;
|
||||||
free(prev->next);
|
free(prev->next);
|
||||||
prev->next = third;
|
prev->next = third;
|
||||||
first->next = NULL;
|
prev->next->next = NULL;
|
||||||
return first;
|
return first;
|
||||||
}
|
}
|
||||||
prev = prev->next;
|
prev = prev->next;
|
||||||
|
Loading…
Reference in New Issue
Block a user