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