write a function to retern char **
Hi All, am trying to write a function that returns a pointer to a character pointer
something of the form
Code:
char ** get_command(int loc);
but I get an error at the prototype definition that * is unexpected!
Is it that functions in C cannot return char ** type or do i need to define my function differently?
Help is highly appreciated.
sismail
Re: write a function to retern char **
It may be the problem.
I think you are using character type as Char rather than char.
while declaring and defining getNextCommand function
And I am using cc compiler.