Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.wizards Subject: Re: Why isn't argv[argc]==(char *)0 ? Message-ID: <2651@auspex.auspex.com> Date: 20 Nov 89 21:35:41 GMT References: <547.nlhp3@oracle.nl> <1989Nov16.012439.6405@virtech.uucp> Reply-To: guy@auspex.auspex.com (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 7 >argv has always had an endmarker. Older versions had the convention >that argv[argc] == -1. *Much* older versions; the first version I saw with argv[argc] == 0 was V7, from which all modern AT&T-UNIX-derived versions are derived. (I.e., unless you have to deal with an archaic UNIX or a Mutant UNIX From Hell, you can count on argv[argc] == 0.)