下面的是会有问题的:
char *temp ;
sprintf(temp,"client=> %s:%d : %d\n",client_ip, client_port, client_st._socktid);
char temp[100] ;
sprintf(temp,"client=> %s:%d : %d\n",client_ip, client_port, client_st._socktid);
下面的是会有问题的:
char *temp ;
sprintf(temp,"client=> %s:%d : %d\n",client_ip, client_port, client_st._socktid);
char temp[100] ;
sprintf(temp,"client=> %s:%d : %d\n",client_ip, client_port, client_st._socktid);