Hi All,
I have a function that takes 'char *[]' as parameter:
In order to call it I need to create an array of 'char *' and call it. (with malloc and all)Code:void myFunc(char *mystrings[]){}
Is there anyways to call this function with char[][] instead of char*[]? Something like this:
I've tried myFunc(*mystring) and myFunc(**mystring) already.Code:char mystring[2][20]; strcpy(mystring[0], "This is first line"); strcpy(mystring[1], "This is second line"); myFunc(mystring);
Thanks