-->

What is the difference between execl and execv?

2020-08-26 03:32发布

问题:

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:

There is no difference other than the format of the arguments. They will both end up calling the same underlying system call execve().



标签: c linux exec