/sys$common/syshlp/HELPLIB.HLB  —  CRTL  execlp
    Passes the name of an image to be activated in a child process.
    This function is nonreentrant.

    Format

      #include  <unistd.h>

      int execlp  (const char *file_name, const char *arg0, . . . ,
                  (char *)0); (ISO POSIX-1)

      int execlp  (char *file_name, . . . ); (Compatibility)

1  –  Arguments

 file_name

    The filename of a new image to be activated in the child process.
    The device and directory specification for the file is obtained
    by searching the VAXC$PATH environment name.

 argn

    A sequence of pointers to null-terminated character strings. By
    convention, at least one argument must be present and must point
    to a string that is the same as the new process filename (or its
    last component).

  . . .

    A sequence of pointers to strings. At least one pointer must
    exist to terminate the list. This pointer must be the NULL
    pointer.

2  –  Description

    See execl for a description of how the exec functions operate.

3  –  Return Value

    -1                 Indicates failure.
Close Help