7 static void *thread_main(void *arg
)
9 uintptr_t address
= (uintptr_t)&arg
;
11 printf("alignment = %" PRIuPTR
"\n", address
& 3U);
16 int main(int argc
, char **argv
)
21 if ((e
= pthread_create(&t
, NULL
, thread_main
, NULL
)) != 0)
23 fprintf(stderr
, "pthread_create: %s\n", strerror(e
));
27 if ((e
= pthread_join(t
, NULL
)) != 0)
29 fprintf(stderr
, "pthread_join: %s\n", strerror(e
));