Printing - Execl, Execle, Execlp, Execlpe, Execv, Execve, Execvp, Execvpe
Printing - Execl, Execle, Execlp, Execlpe, Execv, Execve, Execvp, Execvpe
Syntax
#include <process.h>
int execl(char *path, char *arg0 *arg1, ..., *argn, NULL);
int _wexecl(wchar_t *path, wchar_t *arg0 *arg1, ..., *argn, NULL);
int execle(char *path, char *arg0, *arg1, ..., *argn, NULL, char **env);
int _wexecle(wchar_t *path, wchar_t *arg0, *arg1, ..., *argn, NULL,
wchar_t **env);
Return Value
If successful, the exec... functions do not return. On error, the exec... functions return -1, and the
global variable errno is set to one of the following values:
EACCES Permission denied
EMFILE Too many open files
ENOENT Path or file name not found
ENOEXEC Exec format error
ENOMEM Not enough memory