domaca_uloha_7
This commit is contained in:
parent
e3074a479d
commit
d867e4952f
@ -31,7 +31,7 @@ struct snake* remove_snake(struct snake* snake){
|
|||||||
snake = snake->next;
|
snake = snake->next;
|
||||||
if (snake->next->next == NULL) break;
|
if (snake->next->next == NULL) break;
|
||||||
}
|
}
|
||||||
free(snake->next->next);
|
free(snake->next);
|
||||||
snake->next = NULL;
|
snake->next = NULL;
|
||||||
snake = medzipamat;
|
snake = medzipamat;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user