Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!umich!ox.com!math.fu-berlin.de!fauern!unido!rwthinf!marvin.e17.physik.tu-muenchen.de!berg From: berg@marvin.e17.physik.tu-muenchen.de (Stephen R. van den Berg) Newsgroups: comp.lang.c Subject: Re: Pointer and integer addition Message-ID: <4206@rwthinf.UUCP> Date: 11 Apr 91 10:51:14 GMT References: <8334@umd5.umd.edu> <2exJ01IE4dDY00@amdahl.uts.amdahl.com> Sender: news@rwthinf.UUCP Lines: 11 Duane Richard LaMont writes: >You were definitely on the right track, try: > (char *) fooptr += fooptr->recsize; THAT, is not allowed. (See discussion about "increment casted void-pointer"). -- Sincerely, berg@marvin.e17.physik.tu-muenchen.de Stephen R. van den Berg. "I code it in 5 min, optimize it in 90 min, because it's so well optimized: it runs in only 5 min. Actually, most of the time I optimize programs."