注意字符串的strlen与sizeof的差别
摘要:unsigned char AT_RESET[]="r\r\n"; printf("strlen=%d sizeof=%d\n",strlen(AT_RESET),sizeof(AT_RESET)); 结果:strlen=3 sizeof=4
阅读全文
posted @ 2017-11-23 18:54
posted @ 2017-11-23 18:54
posted @ 2017-11-23 18:48