Im just wondering how i can pass multiple parameters in this instance:
Prompt the user to enter a program name and then input multiple parameters:
e.g:Program Name: ls, First Parameter: -l (and so on....)
so... Program var is : ls, parameter var 1 = -l, parameter var 2 = -p, etc. ......
I need to use the execlp or an alternative call.Code:char program[256];
char *parameters=NULL;
execlp(program,program,parameters, (char *)0);
Thanks