摘要: #include #include #include #include #include //对输入的模式与待匹配的字符串进行匹配;成功返回0;//pattern : 模式// buf : 待匹配的字符串;int regexp(char *pattern, char * buf) { regex_t reg; int status = 0;int cflags = REG_EXTENDED|REG_NOSUB; char error[32];/* 编译正则表达式*/ status = regcomp (®, pattern, cflags); if (status != 0){ re 阅读全文
posted @ 2011-05-04 10:47 Java爱 阅读(375) 评论(0) 推荐(1) 编辑
摘要: 一、lib类型:与windows下静态库(.lib)和动态库(.dll)一样,linux同样存在静态库(static library 文件后缀为.a)和共享库(shared library 文件后缀为.so),在/usr/lib目录下同时存在一个库的静态版本和动态版本。"An archive (or static library) is simply a collection of object files stored as a single file.When you provide an archive to the linker, the linker searches th 阅读全文
posted @ 2011-05-04 10:35 Java爱 阅读(794) 评论(0) 推荐(1) 编辑