summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ball.c6
-rw-r--r--src/ball.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/ball.c b/src/ball.c
index 8337106..b0361cc 100644
--- a/src/ball.c
+++ b/src/ball.c
@@ -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");
diff --git a/src/ball.h b/src/ball.h
index 8297d73..9f30a83 100644
--- a/src/ball.h
+++ b/src/ball.h
@@ -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