摘要:
直接上代码: 1 #include 2 #include 3 4 struct val{ 5 int num1; 6 int num2; 7 }; 8 9 //send a int to arg10 void *text(void *arg)11 {12 int *p = (int *)arg;13 printf("arg is %d\n",*p);14 pthread_exit(NULL);15 }16 17 //send char to arg18 void *text2(void *arg)19 {20 char *d = (cha... 阅读全文