随笔分类 -  [C]

摘要:示例代码: 1 #include 2 #include 3 #include 4 #include 5 #include "json.h" 6 7 void parseJsonString(struct json_object *obj); 8 9 int main(i... 阅读全文
posted @ 2015-05-22 15:19 paullam 阅读(1646) 评论(0) 推荐(0)
摘要:版本:json-c-0.9.tar.gz参考:http://blog.csdn.net/mengyafei43/article/details/38494139示例代码: 1 #include 2 #include 3 #include 4 #include 5 #include ... 阅读全文
posted @ 2015-05-22 15:15 paullam 阅读(1875) 评论(0) 推荐(0)
摘要:global.h 1 /* GLOBAL.H - RSAREF types and constants 2 */ 3 4 /* PROTOTYPES should be set to one if and only if the compiler supports 5 function argu... 阅读全文
posted @ 2014-06-19 14:46 paullam 阅读(665) 评论(1) 推荐(0)
摘要:Linux内核版本:2.6.20include/asm-generic/errno-base.h 1 #define EPERM 1 /* Operation not permitted */ 2 #define ENOENT 2 /* No ... 阅读全文
posted @ 2014-06-11 11:56 paullam 阅读(290) 评论(0) 推荐(0)
摘要:BMP文件由位图文件头、位图信息头、调色板和图像数据四部分组成(1)位图文件头1 typedef struct tagBITMAPFILEHEADER2 {3 WORD bfType; //位图文件的类型,必须为BM(1-2字节)4 DWORD b... 阅读全文
posted @ 2014-05-30 15:57 paullam 阅读(423) 评论(0) 推荐(0)
摘要:libncurses库用来在显示器上显示文本界面,典型例子就是Linux内核的make menuconfig配置界面。libform库用于在ncurses中使用表格。libmenu库用于在ncurses中使用菜单。libpanel库用于在ncurses中使用面板。1. 下载程序包源码:http://... 阅读全文
posted @ 2014-05-20 11:15 paullam 阅读(1987) 评论(0) 推荐(0)
摘要:dllist.h 1 #ifndef _DLLIST_H 2 #define _DLLIST_H 3 4 #ifdef __cplusplus 5 extern "C" { 6 #endif 7 8 struct DLLNode_T{ 9 void *pData; ... 阅读全文
posted @ 2014-05-16 17:56 paullam 阅读(345) 评论(0) 推荐(0)
摘要:这是Live555的源码 1 #include 2 #include 3 4 static char base64DecodeTable[256]; 5 6 static void initBase64DecodeTable() { 7 int i; 8 for (i... 阅读全文
posted @ 2014-05-11 00:56 paullam 阅读(448) 评论(0) 推荐(0)
摘要:1 static const unsigned short crc16_table[256]= 2 { 3 0x0000, 0xC0C1, 0xC181, 0x0140, 0xC301, 0x03C0, 0x0280, 0xC241, 4 0xC601, 0x06C... 阅读全文
posted @ 2014-05-09 12:56 paullam 阅读(9640) 评论(0) 推荐(1)
摘要:C程序一直由下列部分组成: 1)正文段——CPU执行的机器指令部分;一个程序只有一个副本;只读,防止程序由于意外事故而修改自身指令;2)初始化数据段(数据段)——在程序中所有赋了初值的全局变量,存放在这里。3)非初始化数据段(bss段)——在程序中没有初始化的全局变量;内核将此段初始化为0。4)栈—... 阅读全文
posted @ 2014-03-18 08:59 paullam 阅读(629) 评论(0) 推荐(0)