80,351
社区成员
发帖
与我相关
我的任务
分享
//android 5.0.1 手机是Nexus5,这是NDK种的代码,在安卓4.3下执行是没问题,可以处理中文
char buf[MsgLogCat::MAX_LOG_LEN];
setlocale(LC_ALL, "chs");
sprintf(buf,"abc 测试 %s","c测试");
int nLen =strlen(buf);
sprintf(buf,"len %d",nLen);//len确定是4,如何解决?