I\'m having a small problem trying to malloc this struct. Here is the code for the structure:
typedef struct stats { int strength;
malloc returns a pointer, so probably what you want is the following:
malloc
dungeon* d1 = malloc(sizeof(dungeon));
Here is what malloc looks like:
void *malloc( size_t size );
As you can see it return void*, however you shouldn't cast the return value.
void*