#include #include "ball.h" struct ball * new_ball(int x, int y) { struct ball *b; b = malloc(sizeof(*b)); if (b == NULL) { return NULL; } b->x = x; b->y = y; return b; }