diff options
author | P. J. McDermott <pjm@nac.net> | 2013-05-21 17:55:50 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-05-21 17:55:50 (EDT) |
commit | 456372dc946a7562126047b5e179da32a6cee4be (patch) | |
tree | e1e75e03ebf41f00d92cb907c8e4e1c64e7745fa | |
parent | 35e906449a03b1bc23de6a6ea0489febbc8e646f (diff) | |
download | cursespong-456372dc946a7562126047b5e179da32a6cee4be.zip cursespong-456372dc946a7562126047b5e179da32a6cee4be.tar.gz cursespong-456372dc946a7562126047b5e179da32a6cee4be.tar.bz2 |
Add function to free balls.
-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 |