diff options
-rw-r--r-- | src/ball.c | 6 | ||||
-rw-r--r-- | src/ball.h | 1 |
2 files changed, 7 insertions, 0 deletions
@@ -20,6 +20,12 @@ new_ball(int x, int y) } void +free_ball(struct ball *b) +{ + free(b); +} + +void draw_ball(struct ball *b) { mvprintw(b->y, b->x, "o"); @@ -13,6 +13,7 @@ struct ball { }; struct ball *new_ball(int x, int y); +void free_ball(struct ball *b); void draw_ball(struct ball *b); #endif |