I have an absolute path to a directory and name of .c file to be compiled and maybe run it if it is possible ? (using gcc like gcc test.c and then ./a.out to run)
I want to use execlp to run the command and I think before using execlp I need to call :
I am new to system programing and I am wondering can someone help me to write that line of codeCode:setenv("PATH", newpath);
Thanks
Code:int execlp(const char *path, const char *arg0, ..., NULL);