domaca_uloha_7

This commit is contained in:
Tomáš Vasiľ 2022-04-26 21:20:57 +02:00
parent 22f3b73b8b
commit e3074a479d

View File

@ -33,7 +33,11 @@ struct snake* remove_snake(struct snake* snake){
}
free(snake->next->next);
snake->next = NULL;
return medzipamat;
snake = medzipamat;
free(medzipamat);
return snake;
}
}