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