#include void new_thread(arg) int *arg; { printf("new thread argument = %d\n", *arg); } main() { pthread_t th; int i = 1; pthread_init(); pthread_create(&th, NULL, new_thread, &i); pthread_join(th, NULL); }