Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!cmcl2!phri!delftcc!henry From: henry@delftcc.UUCP Newsgroups: comp.lang.c Subject: Query: Implementation with non-zero NULL Message-ID: <158@delftcc.UUCP> Date: Wed, 27-May-87 19:58:45 EDT Article-I.D.: delftcc.158 Posted: Wed May 27 19:58:45 1987 Date-Received: Sat, 30-May-87 06:21:32 EDT Organization: Delft Consulting Corp., New York Lines: 14 Keywords: C, NULL, portability I'm writing a book on C portability. Interested to find actual implementation of C where the null pointer is not "all bits zero." In such an implementation, does char *p; p = (char *)0; result in p having the special null value? How is NULL defined? Are static pointers initialized to all bits zero or to the null value (as in ANSI spec)? In such an implementation, can you use the conventional abbreviation if (p) to mean if (p != NULL)