Category : C++ Source Code
Archive   : VCCRT1.ZIP
Filename : EXECLP.C

 
Output of file : EXECLP.C contained in archive : VCCRT1.ZIP
/***
*execlp.c - execute a file (search along PATH)
*
* Copyright (c) 1985-1992, Microsoft Corporation. All rights reserved.
*
*Purpose:
* defines execlp() - execute a file and search along PATH
*
*******************************************************************************/

#include
#include
#include

/***
*int _execlp(filename, arglist) - execute a file, search along PATH
*
*Purpose:
* Execute the given file with the given arguments; search along PATH
* for the file. We pass the arguments to execvp where several paths
* will be tried until one works.
*
*Entry:
* char *filename - file to execute
* char *arglist - argument list
* call as execlp(path, arg0, arg1, ..., argn, NULL);
*
*Exit:
* destroys calling process (hopefully)
* returns -1 if fails.
*
*Exceptions:
*
*******************************************************************************/

int _execlp (const char * filename, const char * arglist, ...)
{
assert(filename != NULL);
assert(*filename != '\0');
assert(arglist != NULL);
assert(*arglist != '\0');

return(_execvp(filename,&arglist));
}


  3 Responses to “Category : C++ Source Code
Archive   : VCCRT1.ZIP
Filename : EXECLP.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/