Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!wasatch!utah-gr!uplherc!sp7040!obie!wsccs!swillden From: swillden@wsccs.UUCP (Shawn Willden) Newsgroups: comp.lang.c Subject: Re: How big is the argv[] array? Summary: argv has argc elements Message-ID: <708@wsccs.UUCP> Date: 7 Oct 88 01:00:57 GMT References: <1239500004@osiris.cso.uiuc.edu> Lines: 14 In article <1239500004@osiris.cso.uiuc.edu>, hood@osiris.cso.uiuc.edu writes: > > How big is the argv[] array? Or to ask it another way, how safe is it to > go past the argc-1'th element in the argv[] array? > > Isn't it true that the array of pointers (or pointer to pointers, depending > on your point of view) "argv" actually contains argc+1 elements, and not > argc elements? No. At least not in any C I know of. Argv has argc elements. It is possible that some C compilers may give argv argc+1 elements but I know that Borland's Turbo C for PC's and VAX C do not. swillden@wsccs