I'm trying to do this:
const char *p = "/home/paul";
dp = opendir(*p);
But that fails with the following error:
passing argument 1 of 'opendir' makes pointer from integer without a cast
I'm at a loss here, as far as I know what I'm attempting is perfectly valid. After all, I'm passing a const char to a function who's input is a const char. What am I doing wrong?