qc.hlp (Table of Contents; Topic list)
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
                                    -♦-