prepare move old cruft
[reactos.git] / reactos / lib / crtdll / process / execl.c
1 /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
2
3 #include <msvcrt/process.h>
4 #include <msvcrt/stdlib.h>
5 #include <stdarg.h>
6
7 /*
8 * @implemented
9 */
10 int _execl(const char* szPath, const char* szArgv0, ...)
11 {
12 char *szArg[100];
13 const char *a;
14 int i = 0;
15 va_list l = 0;
16 va_start(l,szArgv0);
17 do {
18 a = va_arg(l,const char *);
19 szArg[i++] = (char *)a;
20 } while ( a != NULL && i < 100 );
21
22 return _spawnve(P_OVERLAY, szPath, szArg, _environ);
23 }