2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
5 POSIX function execl().
8 #include <aros/debug.h>
12 /*****************************************************************************
40 ******************************************************************************/
43 char default_argv
[] = { NULL
};
50 while(va_arg(args
,const char *) != NULL
)
54 argv
= (char**) malloc(sizeof(char*) * (argc
+ 1));
64 for(argi
= 1; argi
< argc
; argi
++)
65 argv
[argi
] = va_arg(args
,const char *);
72 return execve(path
, argv
, environ
);