随笔分类 - [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...
        阅读全文
            
摘要:版本:json-c-0.9.tar.gz参考:http://blog.csdn.net/mengyafei43/article/details/38494139示例代码: 1 #include 2 #include 3 #include 4 #include 5 #include ...
        阅读全文
            
摘要: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...
        阅读全文
            
摘要:Linux内核版本:2.6.20include/asm-generic/errno-base.h 1 #define EPERM 1 /* Operation not permitted */ 2 #define ENOENT 2 /* No ...
        阅读全文
            
摘要:BMP文件由位图文件头、位图信息头、调色板和图像数据四部分组成(1)位图文件头1 typedef struct tagBITMAPFILEHEADER2 {3 WORD bfType; //位图文件的类型,必须为BM(1-2字节)4 DWORD b...
        阅读全文
            
摘要:libncurses库用来在显示器上显示文本界面,典型例子就是Linux内核的make menuconfig配置界面。libform库用于在ncurses中使用表格。libmenu库用于在ncurses中使用菜单。libpanel库用于在ncurses中使用面板。1. 下载程序包源码:http://...
        阅读全文
            
摘要: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; ...
        阅读全文
            
摘要:这是Live555的源码 1 #include 2 #include 3 4 static char base64DecodeTable[256]; 5 6 static void initBase64DecodeTable() { 7 int i; 8 for (i...
        阅读全文
            
摘要:1 static const unsigned short crc16_table[256]= 2 { 3 0x0000, 0xC0C1, 0xC181, 0x0140, 0xC301, 0x03C0, 0x0280, 0xC241, 4 0xC601, 0x06C...
        阅读全文
            
摘要:C程序一直由下列部分组成: 1)正文段——CPU执行的机器指令部分;一个程序只有一个副本;只读,防止程序由于意外事故而修改自身指令;2)初始化数据段(数据段)——在程序中所有赋了初值的全局变量,存放在这里。3)非初始化数据段(bss段)——在程序中没有初始化的全局变量;内核将此段初始化为0。4)栈—...
        阅读全文
            
                    
                
浙公网安备 33010602011771号