exercises/ex05/shapes_soln.c
Rectangle *make_rectangle(Point *corner, double width, double height) {
    Rectangle *new = malloc(sizeof(Rectangle));

    // make a safety copy of corner
    new->corner = make_point(corner->x, corner->y);
    new->width = width;
    new->height = height;
    return new;
}
/* Return a new Rectangle

x, y: coordinates

returns: new Rectangle; use free_rectangle to free
*/
Return a new Rectangle
x, y: coordinates

new Rectangle; use free_rectangle to free
Return a new Rectangle x y : coordinates new Rectangle ; use free_rectangle to free
Rectangle *make_rectangle(Point *corner, double width, double height) {
    Rectangle *new = malloc(sizeof(Rectangle));
    new->corner = make_point(corner->x, corner->y);
    new->width = width;
    new->height = height;
    return new;
}
Rectangle * make_rectangle ( Point * corner , double width , double height ) { Rectangle * new = malloc ( sizeof ( Rectangle ) ) ; new -> corner = make_point ( corner -> x , corner -> y ) ; new -> width = width ; new -> height = height ; return new ; }
Return a new Rectangle
x, y: coordinates
Return a new Rectangle x y : coordinates
// make a safety copy of corner