/* * Este programa gera um erro de execução? */ #include #include typedef struct S { int i; int j; } S; S f_thread(S s) { printf("Nova thread %d %d.\n", s.i, s.j); return s; } int main() { pthread_t thr; if (pthread_create(&thr, NULL, (void * (*)(void *)) f_thread, NULL)) fprintf(stderr, "Erro na criação da thread. \n"); pthread_join(thr, NULL); return 0; }