Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uwm.edu!linac!att!news.cs.indiana.edu!nstn.ns.ca!uupsi!fozzie!stanley From: stanley@phoenix.com (John Stanley) Newsgroups: comp.lang.c Subject: Re: Zero/nil/NULL/NUL/0/... Message-ID: Date: 20 Apr 91 18:39:21 GMT References: Organization: Mad Scientist Lines: 23 gnat@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) Yes, zero is zero. > -> The unused pointer (in some machines) Do you mean "the null pointer"? It is possible to have used a pointer and for it to be null. For example, you may use it to indicate to a function that it should ignore a pointer parameter. Or, fopen returns a NULL pointer on failure. In either case, the pointer has been used. In any case, the null pointer is NULL, which may or may not be hex 0. > -> End of file (EOF) EOF is not 0, since there would be no way to differentiate it from the NUL character.