I am trying to use execvp to execute unix commands with given flags.
My array, argv, might contain these elements:
{"ls", "-a"}
I am then passing this array to
execvp(argv[0], argv);
How can I safely append NULL onto the end of the argv array so execvp will know where to terminate?