f907798aa5bc8bcb36bce5368d00d596ee7f5203
1 #include <crtdll/process.h>
2 #include <crtdll/stdlib.h>
3 #include <crtdll/stdarg.h>
6 // fixme rewrite to pass the array variants to va_list variant
8 int _execle(const char *path
, const char *szArgv0
, ... /*, const char **envp */)
17 a
= (const char *)va_arg(l
,const char *);
18 szArg
[i
++] = (char *)a
;
19 } while ( a
!= NULL
&& i
< 100 );
22 // szArg0 is passed and not environment if there is only one parameter;
32 return _spawnve(P_OVERLAY
, path
, (char * const *)szArg
, (char * const *)ptr
);