final3?
This commit is contained in:
parent
e8dc186e9c
commit
af3d09e2ef
@ -73,6 +73,11 @@ struct car* clear_train(struct car* first, const char* target) {
|
||||
else {
|
||||
this = this->next;
|
||||
}
|
||||
}
|
||||
if(strcmp(this->next->value,target) == 0{
|
||||
free(this->next);
|
||||
this->next=NULL;
|
||||
return this;
|
||||
}
|
||||
return first;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user