Path: utzoo!attcan!uunet!ncrlnk!ncrcae!ece-csc!mcnc!rti!talos!kjones From: kjones@talos.UUCP (Kyle Jones) Newsgroups: comp.lang.c Subject: Re: A cast pointer is NOT an lvalue!? (ANSI C) Summary: unary * converts cast pointer to an lvalue Keywords: X3J11, pointers, cast, lvalue Message-ID: <329@talos.UUCP> Date: 10 Oct 88 20:01:18 GMT References: <479@midgard.mn.org> Reply-To: kjones@talos.UUCP (Kyle Jones) Organization: Philip Morris Research Center, Richmond, VA Lines: 5 In article <479@midgard.mn.org> dal@syntel.UUCP (Dale Schumacher) writes: > if(p = malloc(sizeof(struct big_thing))) > *((struct big_thing *) p) = big; This is valid. The unary * converts cast pointer to an lvalue.