Go to the first, previous, next, last section, table of contents.
#include <process.h> int __djgpp_spawn(int mode, const char *path, char *const argv[], char *const envp[], unsigned long flags);
This function runs other programs like spawnve
(see section spawn*) except
that an additional parameter flags is passed. flags can
include the following flags to control the details of finding the program
to run:
SPAWN_EXTENSION_SRCH
SPAWN_NO_EXTENSION_SRCH
See section spawn*.
not ANSI, not POSIX
char *args[] = { "gcc.exe", "-v", "hello.c", 0 }; __djgpp_spawn(P_WAIT, "/dev/env/DJDIR/bin/gcc.exe", args, NULL, SPAWN_NO_EXTENSION_SRCH);
Go to the first, previous, next, last section, table of contents.