I\'m having a small problem trying to malloc this struct. Here is the code for the structure:
typedef struct stats { int strength;
The memory assigned by malloc must be stored in a pointer to an object, not in the object itself:
malloc
dungeon *d1 = malloc(sizeof(dungeon));