GNU C
文章平均质量分 70
junyidcf
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C宏参字符串化操作
简单说明C中(仅只能将)宏参字符串化操作, 也建议大家多看英文原著, 参考如下网站:https://gcc.gnu.org/onlinedocs/gcc-4.9.2/cpp/Stringification.html#Stringification将宏参(macro argument into a stringconstant)字符串化, 只要在#符号后仅跟传递到宏定义中的参数即原创 2015-03-14 00:20:06 · 908 阅读 · 0 评论 -
sizeof("string") 以及字符数组使用字符串初始化
1. sizeof 对于常量字符串求字节长度时,注意C会对常量字符串追加‘\0’这样一个NUL字符(末尾已经有NUL字符),所以会比所见常量字串长度大12. 在声明字符数组中使用常量字符串string初始化时,如果声明中未指定数组长度,注意数组长度为sizeof("string")3. 在声明字符数组中使用常量字符串string初始化时,如果声明中指定了数组长度,且长度大于字符串长度,则剩原创 2017-01-01 17:02:52 · 904 阅读 · 0 评论 -
GNU Screen configuration
# no welcome messagestartup_message off# the following two lines give a two-line status, with the current window highlightedhardstatus alwayslastline# hardstatus string '%{= kG}[%{G}%H%? %1`%?原创 2018-01-31 15:23:15 · 290 阅读 · 0 评论
分享