Newsgroups: comp.lang.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: Abandon NULL for (0) Message-ID: <1989Oct13.164144.28783@utzoo.uucp> Organization: U of Toronto Zoology References: <14718@bfmny0.UU.NET> <8241@goofy.megatest.UUCP> <10839@dasys1.UUCP> <10898@riks.csl.sony.co.jp> Date: Fri, 13 Oct 89 16:41:44 GMT In article <10898@riks.csl.sony.co.jp> diamond@riks. (Norman Diamond) writes: >>#define NULLF (FILE *)0 > >Mixed feelings about this one... Besides, what good is it? One very seldom has to pass a null FILE pointer to a function -- none of the stdio functions, the primary customers for FILE pointers, accept one -- and that's the only place where the cast is needed. `if (f == NULL)' strikes me as no less readable than the equivalent with NULLF, and it means exactly the same thing. -- A bit of tolerance is worth a | Henry Spencer at U of Toronto Zoology megabyte of flaming. | uunet!attcan!utzoo!henry henry@zoo.toronto.edu