- Standard Alternative for Compiler Specific Implementation of struct in union
- typedef union Alpha
- {
- uint32_t OuterInt;
- struct
- {
- unsigned char a, b, c, d, e, f;
- };
- } *pAlpha;
- struct MyData
- {
- unsigned char a, b, c, d, e, f;
- };
- union Alpha
- {
- uint32_t OuterInt;
- MyData data;
- } *pAlpha;