摘要: #include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <sys/types.h>#include <dirent.h>#include <fcntl.h>int main(int argc, char **argv){ struct dirent *dirp; DIR *fdir; fdir = opendir("/proc"); while(dirp = readdir(fdir)){ if(strcmp(dirp->d 阅读全文
posted @ 2012-08-26 15:21 庄庄庄 阅读(450) 评论(3) 推荐(0)