#include #include int thrd_join(thrd_t thr, int *res) { return pthread_join(thr, (void**)&res); }