minix/lib/posix/_execlp.c
2009-11-09 10:26:00 +00:00

12 lines
310 B
C

/* execlp() - execute with PATH search Author: Kees J. Bot
* 22 Jan 1994
*/
#define execlp _execlp
#define execvp _execvp
#include <unistd.h>
int execlp(const char *file, const char *arg1, ...)
/* execlp("sh", "sh", "-c", "example", (char *) 0); */
{
return execvp(file, (char * const *) &arg1);
}