4 #include "dlopen_lib.h"
6 void *PrintHello(void *threadid
)
8 const long tid
= (uintptr_t)threadid
;
10 printf("Hello World! It's me, thread #%ld!\n", tid
);
21 printf("In main: creating thread %ld\n", t
);
22 rc
= pthread_create(&thread
, NULL
, PrintHello
, (void *)t
);
24 printf("ERROR; return code from pthread_create() is %d\n", rc
);
26 pthread_join(thread
, NULL
);