Tring
This commit is contained in:
parent
35c325dd8f
commit
38aa06c425
@ -64,7 +64,7 @@ struct car* clear_train(struct car* first, const char* target) {
|
||||
struct car* prev= first;
|
||||
struct car* temp = first->next;
|
||||
while (prev && temp)
|
||||
{ if (strcmp(prev, target) == 0)
|
||||
{ if (strcmp(prev->value, target) == 0)
|
||||
{ struct car* targetNode =prev;
|
||||
prev = temp;
|
||||
temp = temp->next;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user