Now, I understand this would look like a repeat of earlier queries, but I have searched and tried everything. I am not able to print a double pointer. I have the following code
int main(void)
{
char *line;
char **args;
int status;
do {
args = split(&line);
printf(*args);
}
Now it is all executing fine, Just that in the final print line, I am getting the below error:
expected 'const char * __restrict__' but argument is of type 'char ***'
extern int printf (const char *__restrict __format, ...);
Now, I know why I am getting this error, because I am trying to print something illegally. I just don't know what exactly is it that I need to fix, also, if I ever need to print these double pointers, how do we go about it.
Thanks
What I have tried:
I have researched for similar answers, but nothing really solves my problem, I have also tried to read literature on pointers, but the return value of the function split() is a pointer and I cannot change that.