.TH execl() "" "" "General Function (libc)" "(libc)"
.PC "Execute a load module"
.B "#include <unistd.h>"
\fBexecl(\fIfile, arg0, arg1, ..., argn, \fBNULL\fR\^)
\fBchar *\fIfile, *arg0, *arg1, ..., \fB*\fIargn\^\fB;\fR
.PP
The function
.B execl()
calls the \*(CO system call
.B execve()
to execute a program.
It specifies arguments individually, as a NULL-terminated list of
.I arg
parameters.
For more information on file execution, see
.BR execution .
.SH "See Also"
.Xr "execution," execution
.Xr "execve()," execve
.Xr "getuid()," getuid
.Xr "libc," libc
.Xr "unistd.h" unistd.h
.br
\*(PX Standard, \(sc3.1.2
.SH Diagnostics
.B execl()
does not return if successful.
It returns \-1 for errors, such as
.I file
being nonexistent,
not accessible with execute permission, having a bad format,
or too large to fit in memory.
