数据转换
摘要:
1 #ifndef CONVERTTOOL_H_ 2 #define CONVERTTOOL_H_ 3 #include "isEndian.h" 4 #include <string.h> 5 #include <stdlib.h> 6 int getCharFromInt(int v,char buf[]){ 7 int i=0; 8 if(!isEndian()){ 9 for (int i = 0; i < sizeof(buf); i++){10 buf[i] = (unsigned char) (v & 0x000000ff 阅读全文
posted @ 2012-11-06 15:24 凌峰布衣 阅读(591) 评论(0) 推荐(0) 编辑