摘要: 作者:周子涵链接:https://www.zhihu.com/question/27705862/answer/37738315来源:知乎著作权归作者所有,转载请联系作者获得授权。 转自网上不知道什么地方代码阅读——十个C开源项目1. Webbench Webbench是一个在linux下使用的非常 阅读全文
posted @ 2016-08-29 17:05 tommy.yu 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 关键字 数据类型: 简单(7):int long short float double char enum 复杂(2):struct union 类型修饰符(8):auto unsigned signed extern register static volatile void 定义(2): typ 阅读全文
posted @ 2016-08-29 17:04 tommy.yu 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 按照惯例撸一个hello_world.c 编译链接之 执行之 无意外,将输出: 说明: main函数默认作为程序的入口,参数说明: int argc , 参数个数 char *argv[], 具体参数,为了说明问题,新作一 helloword2.c如下 重新编译,执行; 将输出: 阅读全文
posted @ 2016-08-29 12:13 tommy.yu 阅读(392) 评论(0) 推荐(0) 编辑
摘要: 指令帮助: man xxx_command man 2 xxx_command man 3 xxx_command eg. 打开文件的函数open, 如果不清楚传参,则 man 2 xxx_command 通常在man下面如果出来的不是你想要的,试试man 2: eg. 写内容到文件函数write 阅读全文
posted @ 2016-08-29 11:04 tommy.yu 阅读(254) 评论(0) 推荐(0) 编辑