How do I create a function that accepts by refrence an array of character pointers?
I need to be able to overwrite the contents of an array of character pointers, hence I need a pointer to that array.
Here is some of my code, but it is throwing errors, so will be overwriting it:
//function prototype.
void getFileNames(char **contents[]);
//in main
char *contents[] = {"Hello", "World!!!"};
getFileNames(&contents);
//function definition
void getFileNames(char **contents[]){}
Maybe there is a better way of doing this.