Hi All,
I have an array of char pointers:
Code:
char *input_args[MAX_ARGS];
and I have this function:
Code:
BOOL parseArgs(char **input_args[], input arg_num);
I am trying to pass a pointer to this char pointer array like this:
Code:
parseArgs(&input_args, args_num);
But the compiler is complaining:
Code:
warning: passing argument 1 of 'parseArgs' from incompatible pointer type ...
note: expected 'char ***' but argument is of type 'char * (*)[20]'
Tried a bunch of stuff but nothing works.
please help,
Thanks!