Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!mcnc!unc!steele
From: steele@unc.cs.unc.edu (Oliver Steele)
Newsgroups: comp.lang.c
Subject: Re: What is NULL?  There is no right answer!
Message-ID: <800@unc.cs.unc.edu>
Date: Wed, 15-Jul-87 01:05:30 EDT
Article-I.D.: unc.800
Posted: Wed Jul 15 01:05:30 1987
Date-Received: Fri, 17-Jul-87 02:04:40 EDT
References: <1810@megaron.arizona.edu> <23368@sun.uucp>
Reply-To: steele@unc.UUCP (Oliver Steele)
Organization: University of North Carolina, Chapel Hill
Lines: 18
Keywords: NULL 0 pointer C


Is there any guarantee that coercing (type1 *)0 into a (type2 *) yields
(type2 *)0 ?  In particular, might
	if (foo == 0)
differ from
	if (foo == (char *)0)
in some implementation of ANSI C where (char *) and (void *) have
different representations?

Sorry to post, but I couldn't find enough information to prove the above
(I don't have access to the draft).


------------------------------------------------------------------------------
Oliver Steele				  ...!{decvax,ihnp4}!mcnc!unc!steele
							steele%unc@mcnc.org

	"They're directly beneath us, Moriarty.  Release the piano!"