Hi,
My code is -
I am getting the error - Invalid conversion from
void (*) (void*) to void* (*) (void*)
I did not understand why this extra * is coming into picture?
My code is -
Code:
void func1(void* arg)
{
printf("In child thread.\n");
}
int main()
{
int ret;
pthread_t tid;
void (*start_routine) (void*);
start_routine = &func1;
ret = pthread_create(&tid, NULL, start_routine, attr);
printf("In main thread.\n");
return 0;
}
void (*) (void*) to void* (*) (void*)
I did not understand why this extra * is coming into picture?
Comment