为什么我得到这个,是getchar()
功能吗?
printf("Type stop to end connection");
while ((d=getchar()) != '\n' && i < MAXLENGHT){
buf2[i++] = d;
}
buf2[i] = '\0';
dfg = strlen(buf2);}
while (d != 'stop'); // here the error
close(sockfd);
exit(0);
}
为什么我得到这个,是getchar()
功能吗?
printf("Type stop to end connection");
while ((d=getchar()) != '\n' && i < MAXLENGHT){
buf2[i++] = d;
}
buf2[i] = '\0';
dfg = strlen(buf2);}
while (d != 'stop'); // here the error
close(sockfd);
exit(0);
}