🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5223

Re: Pointer comparison question

#5223
From: Henry Spencer
Date: Tue, 26 Jul 1988 14:53
10 lines
912 bytes
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
Technical Details
Message-ID: <1988Jul26.145311.5509@utzoo.uucp>
Path: arc1-ca.pugleaf.net!utzoo!henry
References: <1608@dataio.Data-IO.COM> <469@m3.mfci.UUCP> <513@proxftl.UUCP> <7613@cup.portal.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c
Path: arc1-ca.pugleaf.net!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