i have an assignment which let the user writes into the terminal -linux system- any command and i should take this command he wrote to execute it using fork and execvp()

i already can fork a child .. but cant pass parameters to execvp cuz i can't understand what these parameters means :D

Thank you;

>>i can't understand what these parameters means

There are only two of them :icon_eek: Read this.

The execv and execvp functions provide an array of pointers to null-terminated strings that represent the argument list available to the new program. The first argument, by convention, should point to the file name associated with the file being executed. The array of pointers must be terminated by a NULL pointer.