char* text = "中国人";
char str[60];
memset(str, 0x00,60);
memcpy(str, text, 7); //str 缺失数据
memcpy(str, text, 60); //str 完整数据
数据缺失的中文字符串
最新推荐文章于 2021-06-05 15:07:09 发布
char* text = "中国人";
char str[60];
memset(str, 0x00,60);
memcpy(str, text, 7); //str 缺失数据
memcpy(str, text, 60); //str 完整数据