Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!isgate!krafla!adamd From: adamd@rhi.hi.is (Adam David) Newsgroups: comp.os.minix Subject: Re: NULL Message-ID: <3292@krafla.rhi.hi.is> Date: 24 Jun 91 15:15:47 GMT References: <33822@usc.edu> Organization: University of Iceland Lines: 18 In <33822@usc.edu> kjh@pollux.usc.edu (Kenneth J. Hendrickson) writes: >*** BUG FIX *** >In /usr/include/stdio.h, #define NULL 0 >In /usr/include/*.h (all others), #define NULL ((void *)0) That is the way it is defined in my copy. It is broken like this. The compiler warns about redefine NULL unless stdio.h is the last file to be included. I have seen systems where the NULL defines are all 0 or all ((void *)0) but it seems odd to have them mixed. Of course there should be more use of '#ifndef NULL' exclusions. Could someone please give an authoritative answer on this. -- Adam David. (adamd@rhi.hi.is)