I want to use execlp for a child process and because it automatically searches the path environment form the root for the command, makes life easier.
However, if I want to execute any command than I need to use execl and get the absolute path.
Is there a better a way given my limited knowledge of C? I read the code posted in the FAQ about recursive searching to get the path of a file. Had compile errors using MinGW 5 and Eclipse.