会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
钟艳
博客园
首页
新随笔
联系
管理
订阅
2017年10月25日
string中含有‘\0’的字符转成char* 后被截断的问题
摘要: 在做protobuf的一个项目中,碰到将对象序列化后成为string a="/010/002/020/000/023/" 将 const char* b=a.c_str()后,传递。 string c =b; c ="/010/002/020",后面的0以后的字符无法直接处理。 解决方法:proto
阅读全文
posted @ 2017-10-25 08:52 钟艳
阅读(7278)
评论(0)
推荐(0)
编辑
公告