摘要: the standard C I/O library: C标准库提供了文件的标准 I/O 函数库,相比前述的系统调用,主要差别是实现了跨平台的用户态缓冲的解决方案。标准I/O库使用简单,与系统调用I/O相似,也包括打开、读写、关闭这些操作,主要的函数列举如下。 ◆ oritened bufferin 阅读全文
posted @ 2018-04-13 14:49 cp1usplus 阅读(229) 评论(0) 推荐(0)
摘要: 1. 指针常量 int a[3] = {1, 2, 3}; const int *b = a; b[0], b[1], b[3] 都是 read_only location 阅读全文
posted @ 2018-04-12 10:54 cp1usplus 阅读(83) 评论(0) 推荐(0)
摘要: linux 下,创建静态库: ar -rcs libname file.o(目标代码)…… -r : 插入和替换。 -c :没有静态库就创建。 -s :创建索引。 阅读全文
posted @ 2018-03-27 10:16 cp1usplus 阅读(138) 评论(0) 推荐(0)
摘要: start 2017/01/09 Introduction: 文件系统的特性和文件的属性:查询/修改,学习链接,操作文件夹。 4.1 stat, fstat, fstatat and lstat Functions // 很重要 RETURN 0 OK -1 ON ERROR state/lstat 阅读全文
posted @ 2018-01-09 19:46 cp1usplus 阅读(188) 评论(0) 推荐(1)
摘要: starting: 2017/12/12 3.1 introduction describing the function available for file I/O.Most file I/O on Unix system can be performed using only five fun 阅读全文
posted @ 2017-12-24 11:58 cp1usplus 阅读(219) 评论(0) 推荐(0)