⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 util_os2.c

📁 apache简化版
💻 C
字号:
#define INCL_DOSFILEMGR#include <os2.h>#include "httpd.h"#include "http_log.h"API_EXPORT(char *)ap_os_canonical_filename(pool *pPool, const char *szFile){    char buf[HUGE_STRING_LEN];    char buf2[HUGE_STRING_LEN];    int rc, len;     char *pos;    /* Remove trailing slash unless it's a root directory */    strcpy(buf, szFile);    len = strlen(buf);        if (len > 3 && buf[len-1] == '/')        buf[--len] = 0;          rc = DosQueryPathInfo(buf, FIL_QUERYFULLNAME, buf2, HUGE_STRING_LEN);    ap_assert(rc == 0);    strlwr(buf2);    /* Switch backslashes to forward */    for (pos=buf2; *pos; pos++)        if (*pos == '\\')            *pos = '/';        return ap_pstrdup(pPool, buf2);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -