echoBuffer[respStringLen] = '\0'; printf("Received:%s\n",echoBuffer);
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/23 17:06:55
echoBuffer[respStringLen]=''\0'';printf("Received:%s\n",echoBuffer);echoBuffer[respStringLen]=''\0'';pri
echoBuffer[respStringLen] = '\0'; printf("Received:%s\n",echoBuffer);
echoBuffer[respStringLen] = '\0'; printf("Received:%s\n",echoBuffer);
echoBuffer[respStringLen] = '\0'; printf("Received:%s\n",echoBuffer);
就是给echoBuffer字符串的最后加一个字符串结束标志,然后把这个字符串打印出来而已.