How big is the argv[] array?

Michael Meissner meissner at xyzzy.UUCP
Sun Oct 9 08:40:19 AEST 1988


In article <507 at quintus.UUCP>, ok at quintus (Richard A. O'Keefe) writes:
| Which are the implementations of C where argv[] is present but argv[argc]
| is not defined?

In article <2989 at mipos3.intel.com> merlyn at intelob.intel.com (Randal L.
Schwartz @ Stonehenge) writes:

| Not so much undefined, as is different.  Dig out an old V6 or PWB UNIX
| manual, if you got'em.  In those beasties (back in the old days),
| 
| argv[argc] == -1
	...
| Just a bit of history.  If you are writing a program to port between
| 4.3-tahoe and a V6 system, beware! :-)

I agree that V6 had this misfeature (and AT&T corrected it in V7, which
is the basis for all modern UNIX systems).  However, if you did find
a V6 PDP-11 to port to, I would wager that this might be the least of
your troubles.  Both C and UNIX have changed a lot from those days.  I
wonder if there is any V6 systems still used for development these
days (I can believe that some are still chugging away on applications
written back then....).
-- 
Michael Meissner, Data General.

Uucp:	...!mcnc!rti!xyzzy!meissner
Arpa:	meissner at dg-rtp.DG.COM   (or) meissner%dg-rtp.DG.COM at relay.cs.net



More information about the Comp.lang.c mailing list