- 博客(10)
- 资源 (3)
- 收藏
- 关注
转载 linux怎么查函数头文件
直接man sleep看到的帮助是shell命令sleepman 3 sleep才是sleep函数。直接man sleep相当于man 1 sleep,1里面的都是命令man 2 xxx用于系统调用man 3 xxx 用于库函数如果某个库函数没有同名的
2011-08-23 16:10:31
2391
转载 MISRA C Rules __官方
MISRA C RulesThe following is a summary of the MISRA C rules. This document is not a definitive list these rules,which are only and co
2011-08-10 11:44:44
2365
原创 A N S I五个预定义的宏名
_ L I N E _ _ F I L E _ _ D A T E _ _ T I M E _ _ S T D C _ 如果编译不是标准的,则可能仅支持以上宏名中的几个,或根本不支持。记住编译程序 也许还提供其它预定义的宏名。
2011-08-07 14:35:28
1716
原创 C语言堆栈入门——堆和栈的区别
来看一个网上很流行的经典例子:main.cpp int a = 0; 全局初始化区 char *p1; 全局未初始化区 main() { int b; 栈 char s[] = "abc"; 栈 char *p2; 栈 char *p3 = "
2011-08-07 14:12:01
2733
原创 gcc/g++中生成map文件
gcc/g++中生成map文件在通过gcc/g++间接调用链接程序ld时,所有的ld选项前必须加上“-Wl,”,因为-Map是ld的选项。所以,要让g++生成mapfile,需要增加编译参数“ -Wl,-Map,mapfile”。例:gcc -o hellowor
2011-08-05 16:52:53
8259
原创 switch引发的错误:a label can only be part of a statement and a declaration is not a statement
GCC:error: a label can only be part of a statement and a declaration is not a statementswitch(a){ swtch(a){case 1: ca
2011-08-05 15:51:02
2178
转载 君生我未生
夜夜挂长钩,朝朝望楚楼。可怜孤月夜,沧照客心愁。 圣水出温泉,新阳万里传。常居安乐国,多报未来缘。 日日思前路,朝朝别主人。行行山水上,处处鸟啼新。 只愁啼鸟别,恨送古人多。去后看明月,风光处处过。 一别行万里,来时未有期。月中三十
2011-08-05 14:32:35
2396
原创 http://people.ece.cornell.edu/land/courses/ece4760/FinalProjects/
Spring 2011(Banner_image,hackedgadgets, adafruit,igadgetview, electronics-lab,levoltz, avrfreaks)Wireless Programmable P
2011-08-05 14:30:17
4107
原创 写宏遇到的问题:warning: backslash and newline separated by space - C
原来是因为\ 后面多了一个空格 附上一个刚刚写得调试用的例子:#define desay_debug(_string,myValue) \ do{\ c_snprintf(desay_info, \ 250 - 1, \
2011-08-05 14:24:40
29582
1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人