execvp
execvp is a function in the POSIX C library used to replace the current process image with a new program. It is part of the exec family of functions. The prototype is int execvp(const char *file, char *const argv[]); The argv array must be terminated by a NULL pointer, and argv[0] is conventionally the name of the program being executed.
execvp searches for the specified file in the directories listed in the PATH environment variable, unless the
The environment of the new program is inherited from the calling process. It does not take an
Typical usage involves forking a process and calling execvp in the child to run a different program
---