October 2018
Beginner
794 pages
19h 23m
English
Great, we've covered in detail how to and how not to use the first of the exec family of APIs—the execl(3). What about the remainder? Let's check them out; reproduced for the reader's convenience is the list:
#include <unistd.h>extern char **environ;int execl(const char *path, const char *arg, ...);int execlp(const char *file, const char *arg, ...);int execle(const char *path, const char *arg, ..., char * const envp[]);int execv(const char *path, char *const argv[]);int execvp(const char *file, char *const argv[]);int execvpe(const char *file, char *const argv[], char *const envp[]); execvpe(): _GNU_SOURCE
As mentioned several times, the execl syntax is this: execl(const char *pathname_to_successor_program, ...
Read now
Unlock full access