Is the difference between the execlp execvp calls and execl execv, is that execlp execvp have the advantage of specifying a file name instead of a path name what makes these two functions better to use over execl and execv?

>>what makes these two functions better to use over execl and execv?
Nothing. It just depends on how you want to use them. As described here execlp will search the PATH environment variable for the executable if path parameter does not contain a slash.

Thanks!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.