摘要: 原文地址:http://www.wangzhongyuan.com/archives/487.html以下是一个Linux/Unix下显示某一目录下文件列表的C程序,相当于最基本的ls命令的功能,显示的内容报告该目录下的子目录以及文件名:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.Code... 阅读全文
posted @ 2010-02-05 12:59 boymgl 阅读(2988) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://www.wangzhongyuan.com/archives/488.html以下是一个Linux/Unix下由两个管道提供双向数据流的C程序,这是操作系统课程中经常使用的基本程序#include <unistd.h> #include <sys/types.h> #include <sys/wait.h> #include <st... 阅读全文
posted @ 2010-02-05 12:48 boymgl 阅读(2047) 评论(0) 推荐(0) 编辑