Initialization
This commit is contained in:
parent
6343d2b6ab
commit
f3cfad99f8
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user