Original von dibi
d) und wer zum Teufel ist dieser Fred ?

Dirk
*LOL*
fred = thread


oder so:
arg = (void *)malloc(sizeof(int)); *(int *)arg=i;
pthread_create(&thread[i], NULL, thread_func, arg);