随笔分类 - UNIX/Linux 编程
摘要:/* FileName: Base_List.h Author: Ares Date: 2017-04-15 */ #ifndef _BASE_LIST_H_#define _BASE_LIST_H_ #include "my_typedef.h"#include <unistd.h> #inclu
阅读全文
摘要:【1】insmod加载驱动后开机重启后没有驱动的解决方法 ----- 转载于网络 为了是在命令行中执行insmod命令安装的驱动能在重启之后还有的解决方法大致有一下两种方法: (1)直接编译内核,把想安装的驱动在编译内核的时候给编译进去,这种方法比较麻烦,花的时候也比较的多,一般不采用这种方法(这种
阅读全文
摘要:/*this is version_2*/#include <stdio.h>#define PAGELEN 24#define LINELEN 80void do_more(FILE *);int see_more(FILE *);int main(int argc, char *argv[]){ FILE *fp; if(argc == 1) do_more(stdin); else while( --argc ) { if((fp = fopen(*++argv, "r")) != NULL) { do_more(fp); fclose(fp); } e.
阅读全文
摘要:/*this is verson_1*/#include <stdio.h>#define PAGELEN 10#define LINELEN 80void do_more(FILE *);int see_more();int main(int argc, char *argv[]){ FILE *fp; if(argc == 1) { do_more(stdin); } else { while(--argc) if((fp = fopen(*++argv, "r")) != NULL) { do_more(fp); fclose(fp); } else ..
阅读全文
摘要:#include <stdio.h>#include <stdlib.h>#include <memory.h>#define BUFSIZE 1024//int a[100];//void Process_bar(int LeftLen, int FileLen); this function is created to show the process bar // but It not does well ,I decide design it in somedays // hope some people could give more ...
阅读全文

浙公网安备 33010602011771号