home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
zip
/
mint
/
mntlib16.lzh
/
MNTLIB16
/
SPAWNVE.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-03
|
1KB
|
67 lines
/*
spawnxxx stuff for MiNT/TOS; written by Eric R. Smith, and
placed in the public domain
*/
#include <stdarg.h>
#include <process.h>
extern char **environ;
int
spawnve(mode, path, argv, envp)
int mode;
char *path;
char **argv;
char **envp;
{
return _spawnve(mode, path, argv, envp);
}
int
spawnv(mode, path, argv)
int mode;
char *path;
char **argv;
{
return _spawnve(mode, path, argv, environ);
}
#ifdef __STDC__
int spawnle(int mode, char *path, ...)
#else
int spawnle(mode, path)
int mode;
char *path;
#endif
{
va_list args;
char ***envp;
int r;
va_start(args, path);
for (envp = (char ***) args ; *envp ; envp++)
;
r = _spawnve(mode, path, (char **)args, *(envp+1));
va_end(args);
return r;
}
#ifdef __STDC__
int spawnl(int mode, char *path, ...)
#else
int spawnl(mode, path)
int mode;
char *path;
#endif
{
va_list args;
int r;
va_start(args, path);
r = _spawnve(mode, path, (char **)args, environ);
va_end(args);
return r;
}