clear
This commit is contained in:
parent
4fae15c755
commit
802dda2e30
@ -63,7 +63,7 @@ struct car* clear_train(struct car* first, const char* target) {
|
||||
}
|
||||
}
|
||||
struct car* this = first;
|
||||
while(this->next != NULL){
|
||||
while(this->next->next != NULL){
|
||||
int x = strcmp(this->next->value, target);
|
||||
if(x == 0){
|
||||
struct car* prev = first;
|
||||
|
Loading…
Reference in New Issue
Block a user