c incompatible types in assignment, problem with pointers?
- by Fantastic Fourier
Hi I'm working with C and I have a question about assigning pointers.
struct foo
{
int _bar;
char * _car[MAXINT]; // this is meant to be an array of char * so that it can hold pointers to names of cars
}
int foofunc (void * arg)
{
int bar;
char * car[MAXINT];
struct foo thing = (struct foo *) arg;
bar = arg->_bar; // this…