9 pthread_once_t once
= PTHREAD_ONCE_INIT
;
15 main(int argc
, char *argv
[])
18 printf("1: Test 1 of pthread_once()\n");
20 pthread_once(&once
, ofunc
);
21 pthread_once(&once
, ofunc
);
23 printf("1: X has value %d\n",x
);
33 printf("Variable x has value %d\n", x
);