pleh cv4
This commit is contained in:
parent
090dc461f3
commit
a56eaf1028
@ -104,6 +104,13 @@ struct car* clear_train(struct car* first, const char* target)
|
||||
while (prev->next->next != NULL)
|
||||
{
|
||||
if(!strcmp(prev->value, target))
|
||||
{
|
||||
struct car* second = prev->next;
|
||||
free(prev);
|
||||
first = second;
|
||||
return first;
|
||||
}
|
||||
else if(!strcmp(prev->next->value, target))
|
||||
{
|
||||
struct car* third = prev->next->next;
|
||||
free(prev->next);
|
||||
|
Loading…
Reference in New Issue
Block a user