
Linux应用
文章平均质量分 68
sykpour
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
2013-10-17 实验之串口程序接受与发送
实验描述:串口程序接受与发送注意事项:注意MIN,和VTIME的设置应用程序:#include #include #include #include int main(int argc, char **argv){ int fd; fd = open("/dev/ttySAC0", O_RDWR); if( fd == -1){ perror("o原创 2013-10-17 14:24:21 · 677 阅读 · 0 评论 -
2013-12-09 文件操作之库函数拷贝文件
题目库函数拷贝文件注意事项注意读写权限的区别程序实现#include#includeint main(void){ FILE *fd1 = fopen("input", "r"); FILE *fd2 = fopen("output4", "r+b"); // these authority is very important char bu原创 2013-12-09 22:31:22 · 628 阅读 · 0 评论 -
【基本知识】重定向,出错处理,管道,时间值
知识点1:STDIN_FILENO, STDOUT_FILENO,分别表示标准输入和标准输出;在终端控制台中的输入均为标准输入,输出为标准输出;知识点2:ls -l >1.txt等价于ls -l 1>1.txt;重定向1.txt到标准输出;知识点3:a.out 知识点4:a.out 2.txt 2>3.txt 等价于a.out 0 2.txt 2>3.txt;标准输入从1.tx原创 2014-07-26 19:50:34 · 722 阅读 · 0 评论