Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!paperboy!hsdndev!cmcl2!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: Is there a NULL pointer to functions? Message-ID: <16305@smoke.brl.mil> Date: 30 May 91 03:05:02 GMT References: <1991May21.125639.10052@umiami.ir.miami.edu> <16269@smoke.brl.mil> <632@gca.UUCP> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 15 In article <632@gca.UUCP> hinton@gca.UUCP (Edward Hinton) writes: >However, I recall a system where 0 WAS a >valid address (small model on an 8086 based virtual memory system) >and NULL was defined to be -1. While an implementation is allowed to make a construct like "((void*)-1)" act like a null pointer, it is also required (by the standard) to treat a null pointer constant written by the programmer as "0" (in certain contexts) or "((void*)0)" as a valid way of denoting a null pointer. Of course that does not mean that the implementation must internally use address value 0 to represent a null pointer. This, while ANY conforming implementation can define NULL in the standard headers as simply "0", this has nothing to do with address values. This topic is covered in the FAQ list, q.v..