Re: storing related structs





Army1987 wrote:

<snip></snip>
struct C {
unsigned id;
char name; /* do you mean *name, or name[LARGE_ENOUGH]? */
enum { strA, strB } type;
Why have you declared an enum here? ^ (can't see why this is needed)


union {
struct A str_A;
struct B str_B;
} the_struct;
};

.



Relevant Pages