I use execv instead of execl. To use execv, I create an array and put arguments that I use with execl in there. Then I put this array into execv
I know I have to use an array of arguments for execv but why? What is the difference between execl and execv?
1 Answer
There is no difference other than the format of the arguments. They will both end up calling the same underlying system call execve().