Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- | | - | e | p |
- |:-:|:-----:|:------:|:------:|
- | l | execl | execle | execlp |
- | v | execv | execve | execvp |
- ---
- * int execl(char const *path, char const *arg0, ...);
- * int execle(char const *path, char const *arg0, ..., char const *envp[]);
- * int execlp(char const *file, char const *arg0, ...);
- * int execv(char const *path, char const *argv[]);
- * int execve(char const *path, char const *argv[], char const *envp[]);
- * int execvp(char const *file, char const *argv[]);
- ---
- * l – Command-line arguments are passed individually (a list) to the function.
- * v – Command-line arguments are passed to the function as an array (vector) of pointers.
- ---
- * e – An array of pointers to environment variables is explicitly passed to the new process image.
- * p – Uses the PATH environment variable to find the file named in the path argument to be executed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement