All pastes #265524 Raw Edit

Unnamed

public text v1 · immutable
·published 2006-12-03 10:29 UTC
rendered paste body
int main(int argc, char **argv) {

	//test case	
	char *filename = "rooms.txt";
	char **room_descriptions;
	int room_count,i;

	room_descriptions = malloc(MAX_ROOMS * sizeof(void));
	//room_count = read_room_descriptions(filename,room_descriptions);

	//for (i = 0;i < room_count;i++) {
	//	printf("%s\n",room_descriptions[i]);
	//	free(room_descriptions[i]);
	//}
	
	for (i=0;i < 5;i++) {
		room_descriptions[i] = nameRoom(i);
		printf("%s\n",room_descriptions[i]);
	}
	
	return 0;
}