Creating pointer with all bits 0 (was: Referencing NULL pointers)

Norman Diamond diamond at csl.sony.co.jp
Fri Sep 8 12:40:29 AEST 1989


In article <1989Sep6.052228.17374 at algor2.algorists.com> jeffrey at algor2.UUCP (Jeffrey Kegler) writes:

>Question: Is an implementation whose null pointer is the same as the
>result of some integer-to-pointer cast conforming?  Apparently not,
>since 3.2.2.3 states, "... a null pointer is guaranteed to compare
>unequal to a pointer to any object or function."

This looks like a bit of a problem all right.  Can it still be fixed
by editorial change?  For example, "... any legally created object or
function" or "... any C object or function."

--
-- 
Norman Diamond, Sony Corporation (diamond at ws.sony.junet)
  The above opinions are inherited by your machine's init process (pid 1),
  after being disowned and orphaned.  However, if you see this at Waterloo or
  Anterior, then their administrators must have approved of these opinions.



More information about the Comp.std.c mailing list