Newsgroups: comp.std.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: Pointer comparison question Message-ID: <1988Jul26.145311.5509@utzoo.uucp> Organization: U of Toronto Zoology References: <1608@dataio.Data-IO.COM> <469@m3.mfci.UUCP> <513@proxftl.UUCP> <7613@cup.portal.com> Date: Tue, 26 Jul 88 14:53:11 GMT In article <7613@cup.portal.com> Jeffrey_J_Vanepps@cup.portal.com writes: >K&R says that you can't reliably compare pointers to one another unless >they both point into the same array. But later they do just that in a >storage allocator. Is this a real discrepancy or am I hallucinating? For "reliably", read "portably". Storage allocators are non-portable by definition, as you have discovered. -- MSDOS is not dead, it just | Henry Spencer at U of Toronto Zoology smells that way. | uunet!mnetor!utzoo!henry henry@zoo.toronto.edu