Question

What is the difference between the execlp and execvp system calls?

What is the difference between the execlp and execvp system calls?

0 0
Add a comment Improve this question Transcribed image text
Answer #1
  • In the execlp we give command line arguments individually to the function.
  • In the execvp command line arguments are passed to the functions as an array of pointers.
  • Syntax for execlp: int execlp(char const *file, char const *arg0, ...);
  • Syntax for execvp: int execvp(char const *file, char const *argv[]);
  • In the execvp argument are in vector and in execlp arguments are in a list.
Add a comment
Know the answer?
Add Answer to:
What is the difference between the execlp and execvp system calls?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT