Why isn't argv[argc]==(char *)0 ?
Richard Tobin
richard at aiai.ed.ac.uk
Wed Nov 22 23:56:35 AEST 1989
In article <2651 at auspex.auspex.com> guy at auspex.auspex.com (Guy Harris) writes:
>*Much* older versions; the first version I saw with argv[argc] == 0 was V7
So it's probably the first version that had it. From the Sixth Edition
man page for exec(II):
"Argv is not directly usable in another execv, since argv[argc] is -1
and not 0."
-- Richard
--
Richard Tobin, JANET: R.Tobin at uk.ac.ed
AI Applications Institute, ARPA: R.Tobin%uk.ac.ed at nsfnet-relay.ac.uk
Edinburgh University. UUCP: ...!ukc!ed.ac.uk!R.Tobin
More information about the Comp.unix.wizards
mailing list