Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!sequent!ogicse!intelhf!ichips!iWarp.intel.com!inews!pima!bhoughto From: bhoughto@pima.intel.com (Blair P. Houghton) Newsgroups: comp.lang.c Subject: Re: argv[] terminated by a NULL pointer? Message-ID: <4827@inews.intel.com> Date: 24 Jun 91 06:31:57 GMT References: <12187@hub.ucsb.edu> <14603@dog.ee.lbl.gov> Sender: news@inews.intel.com Organization: Intel Corp, Chandler, AZ Lines: 11 In article <14603@dog.ee.lbl.gov> torek@elf.ee.lbl.gov (Chris Torek) writes: >Under Version 6 Unix, argv[argc] is (char *)-1. This violates the >following wording from X3.159-1989 (`ANSI C'): > argv[argc] shall be a null pointer. (2.1.1.2, p. 7) >Thus, the answer to your question is both `no' and `yes'. Unless, of course, `(char *)-1' compares equal to a null pointer... --Blair "Yeah, I know, just go back into my corner and keep typing..."