Is this okay:
I have been doing it this way for awhile, since it's the only way to pass a "list" to a parameter "char **" without using malloc, and there is no way to assign a functional pointer to char list[5][12]. But today I am thinking that char *list[5][12] might not be what I hope that it is. Altho if it's not, I'm not sure what it would be...Code:#include <stdio.h> void testfunc(char **ray) { printf("%c\n",ray[2][2]); } int main () { char *ray[5][12]={"this","that","and","more"}; testfunc((char**)ray); return 0; }



LinkBack URL
About LinkBacks



