Re: argv null terminated in main()?

Alan Cox
2004-09-16T22:03:31Z

On Iau, 2004-09-16 at 22:26, Aleksandar Milivojevic wrote:
> I was looking for info on this question on web and in documentation, but
> couldn't find it documented anywhere.
>
> The question is, after call to execve() system call, and after new image
> is loaded, is argv (as passed to main() function of new program) NULL
> terminated or not in Linux?

Yes. execve is documented in SuS v3 which you can find on the web. See
also info glibc which does have a lot more information on other useful
extensions like saved argv0 copies.

Alan