hadik
This commit is contained in:
parent
ae4781d33f
commit
351ea0350e
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user