Hi,
Could you guys help me with these two questions, I need to understand them before my final exam
Code:
typedef struct wood {
int len, wid, hei;
char *description;
} wood_t;
typedef struct wall {
wood_t primary, secondary, tertiary;
int materials_count;
int levels[20];
} wall_t;
wood_t planks[20];
wall_t vertical, horizontal;
wall_t *new_side;
wall_t *new_walls[];
1. Create a function to convert a wood_t to a string. Use the prototype:
char *tostring_wood_t( wood_t w );
2. Create a function to convert a wall_t to a string. Use the prototype:
char *tostring_wall_t( wall_t w );
really appreciate it.