Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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