Hallo all
I have this method:
void *readFileLocal(char filename[]){ ..... }
Now I want to run this a thread method:
char input[strlen(argv[1])]; strcpy(input,argv[1]); pthread_t read,write; pthread_create(&read, NULL, &readFileLocal, &input);
But at compile time, it gives the following warning:
file.c:29: warning: passing argument 3 of 'pthread_create' from incompatible pointer type
/usr/include/pthread.h:227: note: expected 'void * (*) (void *), but the argument is of type' void * (*) (char *)
How can I parse the char array for my function by pthread_create without this warning? Thanks for helpt
Simon source share