注意字符串的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 xihong 阅读(172) 评论(0) 推荐(0)
posted @ 2017-11-23 18:54 xihong 阅读(172) 评论(0) 推荐(0)
posted @ 2017-11-23 18:48 xihong 阅读(379) 评论(0) 推荐(0)