test
This commit is contained in:
parent
9308618678
commit
12e3e04c85
@ -12,9 +12,9 @@ struct snake* add_snake(struct snake* snake, int x, int y) {
|
||||
|
||||
struct snake* remove_snake(struct snake* snake) {
|
||||
if (snake == NULL) return NULL;
|
||||
struct snake* new_head = snake->next;
|
||||
struct snake* hlava = snake->next;
|
||||
free(snake);
|
||||
return new_head;
|
||||
return hlava;
|
||||
}
|
||||
|
||||
void free_snake(struct snake* sn){
|
||||
|
Loading…
Reference in New Issue
Block a user