int pthread_join(pthread_t thread, void **retval);
According to the man page pthread_join should use a pointer to a pointer as argument to store the return value.I cant understand why its designed that way.Is it sufficient to use a pointer variable in that ?
void*result). That value has to be stored somewhere. Thepthread_joinresult would be a candidate, but it is used to convey the function success/failure result. Thus, an out-param is born. As an out-param in C, it provides the target as an address, thus the pointer-to-pointer. - WhozCraig