Hello,
I have a function
I can call it like this without a problem:Code:int exec_program(char * arguments[]) { ... }
However I get an error if I try to compile it like this:Code:char * uselessvariable[] = {"/bin/echo", "Testing", NULL}; exec_program(uselessvariable);
Do you know how, in c, I can put this array inside of the argument in one line without having to name a new variable name?Code:exec_program({"/bin/echo", "Testing", NULL});