Re: storing related structs
- From: Grey Alien <grey@xxxxxxxxxxxxx>
- Date: Sat, 30 Jun 2007 14:04:50 +0100
Army1987 wrote:
<snip></snip>
struct C {Why have you declared an enum here? ^ (can't see why this is needed)
unsigned id;
char name; /* do you mean *name, or name[LARGE_ENOUGH]? */
enum { strA, strB } type;
union {.
struct A str_A;
struct B str_B;
} the_struct;
};
- Follow-Ups:
- Re: storing related structs
- From: Chris Dollin
- Re: storing related structs
- From: Army1987
- Re: storing related structs
- References:
- storing related structs
- From: Gray Alien
- Re: storing related structs
- From: Army1987
- storing related structs
- Prev by Date: Re: storing related structs
- Next by Date: Re: storing related structs
- Previous by thread: Re: storing related structs
- Next by thread: Re: storing related structs
- Index(es):
Relevant Pages
|