Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
spawnv... Functions
◄Description► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
Include: <process.h>, <stdio.h>, <errno.h>
Syntax: int spawnv( int mode, char *cmdname, char **argv );
int spawnve( int mode, char *cmdname, char **argv,
char **envp );
int spawnvp( int mode, char *cmdname, char **argv );
int spawnvpe( int mode, char *cmdname, char **argv,
char **envp );
mode: P_DETACH, P_NOWAIT, P_NOWAITO, P_OVERLAY, P_WAIT
Returns: the child process's exit status (mode = P_WAIT) or the
process ID (mode = P_NOWAIT) if successful, or -1 if not.
errno: E2BIG, EINVAL, ENOENT, ENOEXEC, ENOMEM
See also: abort, atexit, execl..., execv..., exit, _exit, onexit,
spawnl..., system
-♦-