Why isn't argv[argc]==(char *)0 ?
Ken Lee
klee at chico.pa.dec.com
Tue Nov 21 10:43:11 AEST 1989
In article <3053 at cello.UUCP>, dcm at toysrus.uucp (dcm) writes:
> Argc should always be correct. Who cares about argv[argc]?
The problem is that some UNIX functions, such as execv, do not take an
argc. If your system does not force argv[argc]==NULL, you cannot
directly pass your argv (or the last part of it) to execv.
Ken Lee
DEC Western Software Laboratory, Palo Alto, Calif.
Internet: klee at decwrl.dec.com
uucp: uunet!decwrl!klee
More information about the Comp.unix.wizards
mailing list