原创 數字轉成字符
#include "Stdio.h"#include "Conio.h" main(){ int i,k=0; int num=12345; char c,s[10]; while (num>0) {
原创 HTTP斷點續傳實現
一. 兩個必要響應頭Accept-Ranges、ETag 客戶端每次提交下載請求時,服務端都要添加這兩個響應頭,以保證客戶端和服務端將此下載識別爲可以斷點續傳的下載: Accept-Ranges:告知下載客戶端這是
原创 12.07
1. Will you please put the suitcase on the scales? 請把箱子放在秤上好嗎? suitcase['sut.kes] n 1. (旅行用的)手提箱2. 衣箱
原创 Linux啓動bootargs參數分析
Linux啓動bootargs參數分析 Written by leeming 這幾天剛好在看linux c語言啓動,現在就順便把內核在啓動時解析bootargs這一塊單獨拎出來講解下,內核對於bootargs的解析分爲幾塊: 1.
原创 snort代碼處理流程
http://www.cppblog.com/iniwf/archive/2012/05/18/77468.html SnortMain -SnortInit --RegisterPreprocessors 註冊處理函數 --Regi
原创 U_boot 的 bootcmd 和bootargs參數詳解
轉自 :http://linux.chinaunix.net/bbs/archiver/tid-1111568.html U-boot的環境變量值得注意的有兩個: bootcmd 和bootargs。u-bootcmd 前面
原创 rfc2459
組織:中國互動出版網(http://www.china-pub.com/) RFC文檔中文翻譯計劃(http://www.china-pub.com/compters/emook/aboutemook.htm) E-mail:ouya
原创 base64編解碼
char legal_letter[128]; char encode_table[] = { 'A', 'B', 'C', 'D', 'E', '
原创 字符轉成數字
#include "Stdio.h"#include "Conio.h"int strint(const char *str);main(){ int n; char p[]="-123"; n=strint(p);
原创 base64編解碼原理
【Base64】 -base64的編碼都是按字符串長度,以每3個8bit的字符爲一組, -然後針對每組,首先獲取每個字符的ASCII編碼, -然後將ASCII編碼轉換成8bit的二進制,得到一組3*8=24bit的字節 -然後再將這24
原创 C語言opendir()函數:打開目錄函數
相關函數:open, readdir, closedir, rewinddir, seekdir, telldir, scandir頭文件:#include <sys/types.h> #include <dirent.h>定義函數:
原创 UTF-8編碼格式與Unicode編碼格式學習
UTF-8是Unicode的一種實現方式,也就是它的字節結構有特殊要求,所以我們說一個漢字的範圍是0X4E00到0x9FA5,是指unicode值,至於放在utf-8的編碼裏去就是由三個字節來組織,所以可以看出unicode是給出一個字
原创 linux kernel boot arguments(bootargs的設置)
The following is a consolidated list of the kernel parameters as implemented (mostly) by the __setup() macro and sorte
原创 12.14
1.The movie is about to start.電影快開始了。 2.what would you like to have?你要吃什麼? 3.I 'm going to buy some snacks.我去買點兒零食。