home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
progm
/
spawno.zip
/
SPAWNLE.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-09-15
|
999b
|
29 lines
/********************************************************************/
/* SPAWNO v2.0 XMS/disk swapping replacement for spawn...() */
/* (c) Copyright 1990 Ralf Brown All Rights Reserved */
/* */
/* May be freely copied provided that this copyright notice is */
/* not altered or removed. */
/********************************************************************/
#include "spawno.h"
#include <alloc.h>
extern char *__spawn_env ;
int pascal __spawn_buildenv(const char **) ;
int _Cdecl spawnleo(const char *overlay_path,const char *prog_name,...)
{
int retval ;
void *env ;
va_start(env,1) ;
while (*((char *)env)) /* find NULL terminating list of program args */
va_arg(env,void*) ;
va_arg(env,void*) ; /* point at pointer to list of env variables */
retval = __spawnv(overlay_path,prog_name,_va_ptr,__spawn_buildenv(*(char ***)env)) ;
va_end(env) ;
free(__spawn_env) ;
return retval ;
}