I'm having a hard time joining two structures in the same linked list, I've never worked with generic lists or even linked two structures together in one activity, I have the following structures:
struct Patio {
char iden_patio;
int capacidade;
struct Patio *prox;
};
typedef struct Patio patio;
struct Rec_Emp {
char nome_rec[10];
char ident_rec[10];
int uso_rec;
int taxa_rec;
struct Rec_Emp *prox;
};
typedef struct Rec_Emp recuperadora;
I wanted to associate these two lists without necessarily joining all the variables, more or less so, for each patio, associate the recovery elements, eg: iden_patio: A, capacity: 10000, rec_name: Rec01, use_rec: 0, etc. .. As I said I could even join the two, form a bigger struct, but I would like a more elegant solution, because I wanted to preserve the identities of the patios and recuperadoras, thank you for attention right now.