In Codeblocks, it allows Anonymous structs and it is quite useful as I’ve tried Unions and it does not work the same.
Now my question is that since it isn’t standard, what would be the standard equivalent of:
typedef union Alpha
{
uint32_t OuterInt;
struct
{
unsigned char a, b, c, d, e, f;
};
} *pAlpha;
See I cannot replace that anonymous struct with a union as it doesn’t work the same. AND if I define the struct, and replace every call to it with StructName.a, StructName.b, etc.
Is there another way?
Something like :