httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@devsys.jaguNET.com>
Subject Re: cvs commit: apache-2.0/mpm/src/modules/mpm/prefork prefork.c
Date Wed, 28 Jul 1999 20:48:13 GMT
Well, the cast is so no compilers complain, but the evaluation is to 0 :)

Jordan Mendelson wrote:
> 
> Jim Jagielski wrote:
> > 
> > Wilt, Paul wrote:
> > >
> > > This, of course, assumes that NULL evaulates to zero.  I used to have a
> > > software manager who would change the value of NULL, rebuild the whole
> > > runtime library and see who had not been checking return values!
> > >
> > 
> > That's pretty bogus since C guarantees that as far as the language
> > is concerned, NULL will always evaluate to zero, no matter what.
> > If you change the value of NULL, then you are in effect breaking
> > C.
> 
> Actually, ANSI C defines NULL as a null pointer (void *)0. I believe ANSI C++
> defines it as actually being just 0.
> 
> 
> Jordan
> 
> --
> Jordan Mendelson     : http://jordy.wserv.com
> Web Services, Inc.   : http://www.wserv.com
> 


-- 
===========================================================================
   Jim Jagielski   |||   jim@jaguNET.com   |||   http://www.jaguNET.com/
            "That's no ordinary rabbit... that's the most foul,
            cruel and bad-tempered rodent you ever laid eyes on"

Mime
View raw message