On Tuesday 18 November 2008, DJ Delorie wrote:
> > I think a more relevant question is whether it's ok to pass 0, {NULL} for
> > argc, argv.
>
> You can do that on desktop linux, you know:
>
>       execl(some_prog_name, NULL);
>
> argv[0] is NOT guaranteed to be non-NULL:
>
> ISO/IEC 9899:1999(E) 5.1.2.2.1
>
> 2 If they are declared, the parameters to the main function shall obey
>   the following constraints:
>
>   - The value of argc shall be nonnegative.

I'd say it's a broken test then.

Paul

Reply via email to