domaca_uloha_7

This commit is contained in:
Tomáš Vasiľ 2022-04-26 19:56:03 +02:00
parent 1fb1da956b
commit 04a2781b0a

View File

@ -7,9 +7,9 @@ struct snake* add_snake(struct snake* snake,int x,int y){
novyZaciatok->y = y; novyZaciatok->y = y;
if (snake != NULL) { if (snake != NULL) {
snake->next = novyZaciatok; novyZaciatok->next = snake;
} else { } else {
snake->next = NULL; novyZaciatok->next = NULL;
} }
return novyZaciatok; return novyZaciatok;