“Un-casting” from (void *) and de-referencing to char array
问题 I have almost completed an homework assignment where I am required to use pthreads. I have figured out the pthreads. The only problem I have left is figuring out how to pass multiple arguments to threads through pthread_create(). I need to pass two chars to the thread. I have to cast them to (*void) to use with pthread_create(). I can pass them, but I can't figure out how to get the values from *parameter in the function. void *my_function(void *parameter) { /* ATTEMPT 1 - DOESN'T WORK */ /