1 #include <msvcrt/process.h>
2 #include <msvcrt/stdlib.h>
3 #include <msvcrt/stdarg.h>
7 * FIXME rewrite to pass the array variants to va_list variant
11 int _execle(const char *path
, const char *szArgv0
, ... /*, const char **envp */)
20 a
= (const char *)va_arg(l
,const char *);
21 szArg
[i
++] = (char *)a
;
22 } while ( a
!= NULL
&& i
< 100 );
25 // szArg0 is passed and not environment if there is only one parameter;
35 return _spawnve(P_OVERLAY
, path
, (char * const *)szArg
, (char * const *)ptr
);