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

 
Output of file : EXECV.C contained in archive : VCCRT1.ZIP
/***
*execv.c - execute a file
*
* Copyright (c) 1985-1992, Microsoft Corporation. All rights reserved.
*
*Purpose:
* defines execv() - execute a file
*
*******************************************************************************/

#include
#include
#include

/***
*int _execv(filename, argvector) - execute a file
*
*Purpose:
* Executes a file with given arguments. Passes arguments to execve and
* uses pointer to the default environment.
*
*Entry:
* char *filename - file to execute
* char **argvector - vector of arguments.
*
*Exit:
* destroys calling process (hopefully)
* if fails, returns -1
*
*Exceptions:
*
*******************************************************************************/

int _execv (filename, argvector)
const char *filename;
const char * const *argvector;
{
assert(filename != NULL);
assert(*filename != '\0');
assert(argvector != NULL);
assert(*argvector != NULL);
assert(**argvector != '\0');

return(_execve(filename,argvector,_environ));
}


  3 Responses to “Category : C++ Source Code
Archive   : VCCRT1.ZIP
Filename : EXECV.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/