[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] anonymous structs and C99



Miro Kropacek wrote:

Yes but it involves that 'u' everytime,

If you hate typing so much, then why do you type meaningles names
like pointer1 & pointer2

My advice is:

union
{
    char *b;
    int *i;
    // long *l;
    // unsigned int *u;
    // etcetera
} p;

the names are long enough because they are local to a struct;

The more local a name, the shorter it can be.

--
Groeten; Regards.
Henk Robbers. http://members.chello.nl/h.robbers
Interactive disassembler: TT-Digger;  http://digger.atari.org
A Home Cooked C compiler:      AHCC;  http://ahcc.atari.org