Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!umcp-cs!chris From: chris@umcp-cs.UUCP (Chris Torek) Newsgroups: net.lang.c Subject: Re: Casting a postdecrement operand Message-ID: <1764@umcp-cs.UUCP> Date: Sun, 1-Jun-86 05:04:02 EDT Article-I.D.: umcp-cs.1764 Posted: Sun Jun 1 05:04:02 1986 Date-Received: Tue, 3-Jun-86 21:56:02 EDT References: <114@romp.UUCP> <2842@utcsri.UUCP> <378@dg_rtp.UUCP> Reply-To: chris@maryland.UUCP (Chris Torek) Organization: University of Maryland, Dept. of Computer Sci. Lines: 19 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@umcp-cs ARPA: chris@mimsy.umd.edu