2009年11月12日

Inter Integrated Circuit ( I2C )

http://tw.knowledge.yahoo.com/question/question?qid=1506122504420
http://tw.knowledge.yahoo.com/question/question?qid=1306033007425
http://www.ti.com.tw/articles/detail.asp?sno=74

2009年10月29日

checksum

http://gd.tuwien.ac.at/languages/c/cref-mleslie/CONTRIB/SNIP/checksum.c

Point to Function, size_t

http://bbs2.nchu.edu.tw:8000/gemmore/programming&F0TASFN1&4

2009年6月20日

Typedef Function Pointer

http://phorum.study-area.org/index.php?topic=21728.0
http://squall.cs.ntou.edu.tw/cpp/94spring/lab03/Lab3-2.html
http://www.programmer-club.com.tw/ShowSameTitleN/c/25059.html
http://caterpillar.onlyfun.net/Gossip/CGossip/FunctionPointer.html

2009年5月6日

Linux Shell 下的輸出重定向

Linux Shell 環境中支持輸入輸出重定向,用符號<和>來表示。0、1和2分別表示標準輸入、標準輸出和標準錯誤信息輸出。同時,還可以在這三個標準輸入輸出之間實現重定向,比如將錯誤信息重定向到標準輸出,可以用 2>&1來實現。Linux下還有一個特殊的文件/dev/null,它就像一個無底洞,所有重定向到它的信息都會消失得無影無蹤。如果想要正常輸出和錯誤信息都不顯示,則要把標準輸出和標準錯誤都重定向到/dev/null, 例如:
# ls >/dev/null 2>&1
注意:此處的順序不能更改,否則達不到想要的效果,此時先將標準輸出重定向到 /dev/null,然後將標準錯誤重定向到標準輸出,由於標準輸出已經重定向到了/dev/null,因此標準錯誤也會重定向到/dev/null,於是一切靜悄悄.

Reference
http://blog.daviesliu.net/2005/08/31/200811/