Skip to content

Instantly share code, notes, and snippets.

@jasongorman
Created March 26, 2019 08:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasongorman/7e944001beb8b03983fab209ec1d4234 to your computer and use it in GitHub Desktop.
Save jasongorman/7e944001beb8b03983fab209ec1d4234 to your computer and use it in GitHub Desktop.
#include <stdlib.h>
#include "rectangular_room.h"
struct Room {
float width;
float length;
};
Room* new_rectangular_room(float width, float length){
Room* room = malloc(sizeof(Room));
room->width = width;
room->length = length;
return room;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment