Casting a postdecrement operand
Chris Torek
chris at umcp-cs.UUCP
Sun Jun 1 19:04:02 AEST 1986
Incidentally, if you really *do* want to take a pointer `p' to
type `x', but treat it as a pointer to type `y', the construct
*(y **)&p
works (as long as `p' is addressable). Thus
((struct abc *)cbap)++;
is not legal, but
(*(struct abc **)&cbap)++;
is (again, if cbap is addressable). What it means is machine
dependent!
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 1516)
UUCP: seismo!umcp-cs!chris
CSNet: chris at umcp-cs ARPA: chris at mimsy.umd.edu
More information about the Comp.lang.c
mailing list