clear
This commit is contained in:
parent
460920648d
commit
8479e19522
@ -63,7 +63,7 @@ struct car* clear_train(struct car* first, const char* target) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
struct car* prev = first;
|
struct car* prev = first;
|
||||||
int z = strcmp(prev->value, target};
|
int z = strcmp(prev->value, target);
|
||||||
if(z == 0){
|
if(z == 0){
|
||||||
struct car* only = prev->next;
|
struct car* only = prev->next;
|
||||||
free(prev);
|
free(prev);
|
||||||
|
Loading…
Reference in New Issue
Block a user