Initialization

This commit is contained in:
Kozar 2024-04-11 14:06:39 +02:00
parent 6343d2b6ab
commit f3cfad99f8

View File

@ -10,7 +10,14 @@ struct snake* add_snake(struct snake* snake,int x,int y){
}
struct snake* remove_snake(struct snake* snake){
return NULL;
struct snake* head = calloc(1,sizeof(struct snake));
struct snake* this = head;
this = this->next;
this = head;
while (this != NULL){
this= this->next;
}
return head;
}
void free_snake(struct snake* sn){