Re: argv null terminated in main()?

Aleksandar Milivojevic
2004-09-17T13:52:19Z

Alan Cox wrote:
> On Iau, 2004-09-16 at 22:26, Aleksandar Milivojevic wrote:
>>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.

Thanks for quick answer. I didn't know to which degree was Linux SuS v3
compliant, so I said better to ask ;-)

--
Aleksandar Milivojevic <amilivojevic@pbl.ca> Pollard Banknote Limited
Systems Administrator 1499 Buffalo Place
Tel: (204) 474-2323 ext 276 Winnipeg, MB R3T 1L7