Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!henry From: henry@utzoo.UUCP (Henry Spencer) Newsgroups: net.lang.c Subject: Re: NULL pointer Message-ID: <6155@utzoo.UUCP> Date: Wed, 20-Nov-85 14:51:18 EST Article-I.D.: utzoo.6155 Posted: Wed Nov 20 14:51:18 1985 Date-Received: Wed, 20-Nov-85 14:51:18 EST References: <3361@brl-tgr.ARPA> Organization: U of Toronto Zoology Lines: 14 > But..... for a machine with non-zero null pointer representations > > lo_func( ..., (int *)NULL, ... ); > still doesn't work. What the callee routine gets is a pointer with an all-zero > representation.... which isn't a null pointer. The ONLY thing that does work is > lo_func( ..., p=0, ....); > where p is a pointer of the requisite type!... Where on Earth did you get that idea? (Actually, I know: from an obsolete writeup and/or compiler.) The semantics of casts were somewhat obscure when they were first introduced, but the eventual rigorous definition was "a cast acts just like an assignment to a variable of that type". -- Henry Spencer @ U of Toronto Zoology {allegra,ihnp4,linus,decvax}!utzoo!henry