I want to get a filename from a commandline argument so I can pass it to a file-opening function, however, argv[] seems to be of type const char ** by default, even if it was defined as "const char * argv[]" in the main's arguments. My function requires const char *, is there a way to convert this two, or something?
int main(int argc, const char *argv[]) {
memory Memory;
Memory.loadROM(argv); // Error 'argument of type "const char **" is incompatible with parameter of type "const char *"'
}