On 2007/11/29, Dave Korn <[EMAIL PROTECTED]> wrote:
> On 29 November 2007 00:12, J.C. Pizarro wrote:
>
>
> > The more weird thing was "..." in middle of the C's stack from
> > int execle(const char *path, const char *arg, ..., char * const envp[]);
> > extracted from "man execle".
>
> http://www.opengroup.org/onlinepubs/000095399/functions/exec.html
>
>  int execle(const char *path, const char *arg0, ... /*,
>        (char *)0, char *const envp[]*/);
>
>   Note the comment markers.  The last two 'arguments' are not real args, it is
> just a comment to tell you what the last two parameters in the varargs list
> should be equal to.
>
>
>     cheers,
>       DaveK
> --
> Can't think of a witty .sigline today....

That's absurd complex specification!

The more easy specification will be

int execel(const char *path, const char *arg0, char *const envp[],
                ... /*, (char *)0*/);

with same functionality but reordered the parameters of the function
following the general pattern of putting '...' in the last position.

   J.C.Pizarro

Reply via email to