Originally Posted by
tester1234
what is former = char* < only 1 *
and latter char** ?
is it correct?
This:
Code:
void split(char buf[], char *array[]);
is equivalent to:
Code:
void split(char buf[], char **array);
The reason why I used array notation in the former is to hint that an array is expected as an argument. Either way, the parameter named array is a pointer to a pointer to char.
For this:
Code:
char **split(char buf[]);
I went straight to char** notation because an array cannot be returned anyway (and besides, it would be invalid syntax).