Initialization

This commit is contained in:
Kozar 2024-04-11 14:03:01 +02:00
parent be69143eec
commit 6343d2b6ab

View File

@ -2,7 +2,11 @@
#include <stdlib.h>
struct snake* add_snake(struct snake* snake,int x,int y){
return NULL;
struct snake* head = calloc(1,sizeof(struct snake));
head->x = x;
head->y = y;
head->next = snake;
return head;
}
struct snake* remove_snake(struct snake* snake){