unsigned char AT_RESET[]="r\r\n";
printf("strlen=%d sizeof=%d\n",strlen(AT_RESET),sizeof(AT_RESET));
结果:strlen=3 sizeof=4
2023-12-22 11:37:27
unsigned char AT_RESET[]="r\r\n";
printf("strlen=%d sizeof=%d\n",strlen(AT_RESET),sizeof(AT_RESET));
结果:strlen=3 sizeof=4