so how do I do it? (was Re: call to revolt)

Norman Diamond diamond at jit533.swstokyo.dec.com
Fri Jun 28 14:08:41 AEST 1991


In article <16561 at smoke.brl.mil> gwyn at smoke.brl.mil (Doug Gwyn) writes:
>In article <1991Jun27.115736.18417 at tkou02.enet.dec.com> diamond at jit533.enet@tkou02.enet.dec.com (Norman Diamond) writes:
>>>and then (struct foo *)p->c  or (struct foo *)p->u
>>This is legal.
>Actually, no.  ((struct foo *)p)->c is the way to write this.
>You want to cast the pointer, not the char member.

Sorry.  I probably messed up the syntax on a few other lines too.
--
Norman Diamond       diamond at tkov50.enet.dec.com
If this were the company's opinion, I wouldn't be allowed to post it.
Permission is granted to feel this signature, but not to look at it.



More information about the Comp.std.c mailing list