摘要: version.h #define SERVER_SOFTWARE "mini_httpd/1.21 18oct2014" #define SERVER_URL "http://www.acme.com/software/mini_httpd/"port.h #define OS_... 阅读全文
posted @ 2015-06-17 15:19 湛雷冲 阅读(675) 评论(0) 推荐(0)
摘要: //字符串匹配,匹配返回 1,否则返回 0.//pattern可以通过任意个 | 字符,组合match_one中pattern的功能intmatch(const char* pattern, const char* string){ const char* or; for (;;) ... 阅读全文
posted @ 2015-06-17 14:27 湛雷冲 阅读(390) 评论(0) 推荐(0)
摘要: ///关联字符串和整数struct strlong { char* s; long l;};///将字符串中的大写字母转换成小写字母static void pound_case(char* str)//比较stlong类型中字符串*s,用strcmp比较static int strlon... 阅读全文
posted @ 2015-06-17 13:41 湛雷冲 阅读(348) 评论(0) 推荐(0)
摘要: 针对不同系统的宏定义,对于Linux而言/* port.h - portability defines */#elif defined(linux)# define OS_Linux# define ARCH "Linux"#ifdef OS_Linux# define HAVE_DAEMON# d... 阅读全文
posted @ 2015-06-17 12:46 湛雷冲 阅读(288) 评论(0) 推荐(0)
摘要: /* version.h - version defines for mini_httpd */#ifndef _VERSION_H_#define _VERSION_H_#define SERVER_SOFTWARE "mini_httpd/1.21 18oct2014"#define SERVE... 阅读全文
posted @ 2015-06-17 12:39 湛雷冲 阅读(483) 评论(0) 推荐(0)