I have a pointer to a character array:
space=(char**)calloc(100000,sizeof(char*));
for(i=0;i<100000;i++){
space[i]=(char*)calloc(1,sizeof(char));
}
such that when I use the following command
printf("%s\n",space[0]);
I get "a b c d e"
I want to assign "a b c d e" to
char c[10];
such that
printf("%s",c) yields
"a b c d e"
but when I try
c=space[0]
I get the following error:
incompatible types in assignment
What am I doing wrong?
"a b c d e"from that printf with the above code. And I don't see what exactly you're trying to do.