argv[] terminated by a NULL pointer?

Blair P. Houghton bhoughto at pima.intel.com
Mon Jun 24 16:31:57 AEST 1991


In article <14603 at dog.ee.lbl.gov> torek at 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..."



More information about the Comp.lang.c mailing list