Pointer comparison question

Henry Spencer henry at utzoo.uucp
Wed Jul 27 00:53:11 AEST 1988


In article <7613 at cup.portal.com> Jeffrey_J_Vanepps at 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 at zoo.toronto.edu



More information about the Comp.std.c mailing list