Initialization

This commit is contained in:
Kozar 2024-04-11 14:38:29 +02:00
parent 3765a6ef48
commit 3842dfd920

View File

@ -12,7 +12,7 @@ struct snake* add_snake(struct snake* snake,int x,int y){
struct snake* remove_snake(struct snake* snake) {
struct snake* head;
struct snake* this = head;
if (head!= NULL) {
while (head!= NULL) {
head = head->next;
free(this);
}