qc.hlp (Table of Contents; Topic list)
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.
spawnl... Functions
 Description Example                     Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Include:   <process.h>, <stdio.h>, <errno.h>
 
  Syntax:    int spawnl( int mode, char *cmdname, char *arg0,
                         char *arg1,...char *argn, NULL );
 
             int spawnle( int mode, char *cmdname, char *arg0,
                          char *arg1,...char *argn, NULL,
                          char **envp );
 
             int spawnlp( int mode, char *cmdname, char *arg0,
                          char *arg1,...char *argn, NULL );
 
             int spawnlpe( int mode, char *cmdname, char *arg0,
                           char *arg1,...char *argn, NULL,
                           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,
             spawnv..., system
                                    -♦-