15 lines
205 B
C
15 lines
205 B
C
|
#include <stdlib.h>
|
||
|
#include "room.h"
|
||
|
|
||
|
void free_room(Room r) {
|
||
|
free(r.name);
|
||
|
free(r.description);
|
||
|
}
|
||
|
|
||
|
void free_rooms(Rooms r) {
|
||
|
for (int i = 0; i < r.count; i++) {
|
||
|
free_room(r.rooms[i]);
|
||
|
}
|
||
|
}
|
||
|
|