#include #include #include main() { char* argv[5]; argv[0]=(char*)malloc(10); argv[1]=(char*)malloc(10); strcpy(argv[0],"ls"); strcpy(argv[1],"-l"); argv[2]=NULL; printf("Acum execut ls.\n"); execvp("ls",argv); }