Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!liuida!isy!lysator.liu.se!pen From: pen@lysator.liu.se (Peter Eriksson) Newsgroups: comp.lang.c Subject: Re: Example of null ptr not = 0 ? Message-ID: <407@lysator.liu.se> Date: 21 Nov 90 03:56:04 GMT References: <90324.143724DXB132@psuvm.psu.edu> Sender: news@isy.liu.se (Lord of the News) Organization: Lysator Computer Club, Linkoping University, Sweden Lines: 22 DXB132@psuvm.psu.edu (Dan Babcock) writes: >I just read through the first section of the regular posting (common questions >and answers) (it's about 'null pointers') and I have a down-to-earth question: >Does there exist a C compiler for any "modern", commercial, 32-bit >(or more :-)) machine (i.e. a machine like you and I use) that uses something >other than zero (real binary zero) to mean "null pointer"? Why not just say in >the spec "a null pointer is zero!" and be done with the whole matter? >It just seems like a trivial academic exercise to talk about it any other way. >(My humble opinion, of course :-)) Well... all Prime 50-series computers can use non-zero null pointers. They are 32 bit machines and not very uncommon. And there is a rather good C compiler available for them too. (They run an operating system called PRIMOS, normally). /Peter -- Peter Eriksson pen@lysator.liu.se Lysator Computer Club ...!uunet!lysator.liu.se!pen University of Linkoping, Sweden "Seize the day!"