I can pass struct into pthread_create as thread argument.
But is it possible to modify this struct within the thread so that when the thread terminates, the main program can access this struct to obtain modified data? If so, do I need to cast the struct back to void in the thread?