I have a program which forks off other processes. The arguments to my program include the process name of the process to be forked, along with any arguments.
This means, when I make the call to exec(), I need to be able to handle however many arguments were supplied.
Any ideas?
Thanks.
The
execvfunction takes a pointer to an array of arguments.Just like in
main, the last element in the array needs to be a null pointer.