Skip to content

Instantly share code, notes, and snippets.

@jasongorman
Created March 26, 2019 08:20
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/0eb87302b9fc0990e6c11cc7662e8c4a to your computer and use it in GitHub Desktop.
Save jasongorman/0eb87302b9fc0990e6c11cc7662e8c4a to your computer and use it in GitHub Desktop.
struct Room {
float radius;
};
Room* new_circular_room(float radius){
Room* room = malloc(sizeof(Room));
room->radius = radius;
return room;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment