Zero/nil/NULL/NUL/0/...

Checkpoint Technologies ckp at grebyn.com
Sat Apr 20 23:48:39 AEST 1991


In article <GNAT.91Apr20183721 at kauri.kauri.vuw.ac.nz> gnat at kauri.vuw.ac.nz (Nathan Torkington) writes:
>I have read the FAQ and this doesn't seem to be what I'm after.  What I
>am looking for is an explicit list of things which 0 (zero decimal, zero
>octal, zero hexadecimal, etc) stand for.  So far I have :
>  -> The number zero (in any base)
>  -> The unused pointer (in some machines)
       Er, really a pointer which is not pointing to anything.  This
       should be true of all machines. (Go read the FAQ again.)
>  -> The null character (ASCII, etc)
>  -> End of file (EOF)
       Actually this is untrue.  0 can be a valid file character, so EOF
       must not be 0; typically EOF is -1.
>  -> Not true (FALSE)

Offhand, I can't think of any other "meanings" C gives to 0.
-- 
First comes the logo: C H E C K P O I N T  T E C H N O L O G I E S      / /  
                                                ckp at grebyn.com      \\ / /    
Then, the disclaimer:  All expressed opinions are, indeed, opinions. \  / o
Now for the witty part:    I'm pink, therefore, I'm spam!             \/



More information about the Comp.lang.c mailing list