This commit is contained in:
Michal Utľák 2024-04-26 11:53:32 +02:00
parent ae4781d33f
commit 351ea0350e

View File

@ -32,6 +32,11 @@ struct snake* remove_snake(struct snake* snake){
}
void free_snake(struct snake* sn){
if (sn == NULL) {
return;
}
free_snake(sn->next);
free(sn);
}
int is_snake(struct snake* snake,int x,int y){