原创 無符號與有符號

https://blog.csdn.net/u012675103/article/details/45953183?utm_source=blogxgwz6 同精度signed與unsigned比較時,轉換爲unsigned比較,轉換時以

原创 UltraEdit編寫程序時大括號{ }怎麼對齊

寫程序用到大括號{ }時,習慣上先寫{},然後將光標用到{}中間,再按Enter鍵換行。例如while循環如下:         while(1)         {                 code;         }//正常

原创 long與int字節大小

早期的操作系統是16位系統, int用二字節表示,範圍是-32768~32767; long用4字節表示,範圍是-2147483648~2147483647。 後來發展到32位操作系統, int 用4字節表示,與long相同。

原创 宏編譯

#define #undef #if #else #endif #ifdef #ifndef 使用 #if (a == 1) || (a == 2) || defined(BOOK) #elif defined(TIME) || def

原创 調試 信息添加

分類顯示 [出錯(顏色)][日期時間][模塊][等級][文件][函數][行號][信息~~~~~~~~~~~] 開關需求                     ->1.出錯開關帶顏色                     ->2.重要

原创 gcc選項含義

https://blog.csdn.net/soaringlee_fighting/article/details/65448010     GCC選項_-Wl,-soname https://blog.csdn.net/gohome52

原创 高級io

https://blog.csdn.net/amoscykl/article/details/80399073 readv writev例子 https://blog.csdn.net/todd911/article/details/18

原创 socket例子及高級用法

使用SIGALRM信號爲阻塞操作設置超時 可以處理connect和read等超市 https://blog.csdn.net/lstok2009/article/details/50100529 #include<stdio.h> #i

原创 dopen變函數變參數實現

dopen打開庫, 調用變函數,傳入變參數 g++ lib_call.c  -o lib_call -ldl   #include <stdio.h> #include <stdlib.h> #include <dlfcn.h> #in

原创 #與##參數與中間層宏的作用

https://blog.csdn.net/tkp2014/article/details/78656077

原创 可變參數

http://blog.sina.com.cn/s/blog_b315f69b0102wi16.html #define _INTSIZEOF(n) ((sizeof(n)+sizeof(int)-1)&~(sizeof(int) - 1

原创 udp可靠傳輸的一種

https://blog.csdn.net/guxch/article/details/7041052 https://blog.csdn.net/sinat_20184565/article/details/79567057 https

原创 linux的c方式獲取shell結果

使用popen test.c #include <stdio.h> #include <string.h> #include <stdlib.h> int cmd_run(char *cmd, char* results, int l

原创 文件I/O和標準I/O的區別

https://blog.csdn.net/zqixiao_09/article/details/50444465 1.緩衝與不帶緩衝 2.普通文件與包括設備文件,管道文件

原创 makefile忽略錯誤繼續編譯

https://blog.csdn.net/lgibsion/article/details/70854565