Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!brl-tgr!gwyn From: gwyn@brl-tgr.ARPA (Doug Gwyn ) Newsgroups: net.lang.c Subject: Re: c programming style - READ THIS Message-ID: <7@brl-tgr.ARPA> Date: Fri, 19-Jul-85 00:02:01 EDT Article-I.D.: brl-tgr.7 Posted: Fri Jul 19 00:02:01 1985 Date-Received: Sat, 20-Jul-85 10:45:01 EDT References: <11570@brl-tgr.ARPA> <935@teddy.UUCP> <1286@uwmacc.UUCP> <2439@sun.uucp> Organization: Ballistic Research Lab Lines: 13 > 1) The only operation in C that adds an integer to the integer > with the same bit pattern as a given pointer and produces a > pointer value with the same bit pattern as the result is > > (pointer_type) ((int)pointer + integer_value) Well, almost. I'm sure that Guy knows the problem -- I wonder if any of the people recently showing by their postings on the subject of C style that they aren't familiar enough with C to pay attention to can spot the problem. Please don't bother to post your solution; no prizes are being offered.