linux
酱菜物联
学生
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
intTobyte
int类型转换为byte #define byte unsigned char static void intToByte(int i,byte *bytes) { //byte[] bytes = new byte[4]; int size = 4; memset(bytes,0,sizeof(byte) * size); bytes[3] = (byte)...原创 2019-07-24 17:42:11 · 1036 阅读 · 0 评论 -
json-c使用
json-c使用例子 static void *message_handler(void *msg) { int i; int flag = 1; int state_flag = -1; char deviceId[ID_LEN] = {0}; strncpy(deviceId,"LS",2); struct json_object *new_object,*agtid_obje...原创 2019-07-24 17:55:36 · 897 阅读 · 0 评论
分享