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

📄 ospath.sl

📁 一个C格式的脚本处理函数库源代码,可让你的C程序具有执行C格式的脚本文件
💻 SL
字号:
_debug_info = 1; () = evalfile ("inc.sl");print ("Testing ospath ...");static define test_path (path, dir, base, ext, dirbase){   if (dir != path_dirname (path))     failed ("path_dirname " + path);      if (base != path_basename (path))     failed ("path_basename " + path);      if (ext != path_extname (path))     failed ("path_extname " + path);      if (dirbase != path_concat (dir, base))     failed ("path_concat(%s,%s)", dir, base);}#ifdef UNIXtest_path ("etc/rc.d", "etc", "rc.d", ".d", "etc/rc.d");test_path ("etc", ".", "etc", "", "./etc");test_path ("usr/etc/", "usr/etc", "", "", "usr/etc/");test_path ("/", "/", "", "", "/");test_path (".", ".", ".", ".", "./.");test_path ("/a./b", "/a.", "b", "", "/a./b");test_path (".c", ".", ".c", ".c", "./.c");#elifndef VMStest_path ("etc\\rc.d", "etc", "rc.d", ".d", "etc\\rc.d");test_path ("etc", ".", "etc", "", ".\\etc");test_path ("usr\\etc\\", "usr\\etc", "", "", "usr\\etc\\");test_path ("\\", "\\", "", "", "\\");test_path (".", ".", ".", ".", ".\\.");test_path ("\\a.\\b", "\\a.", "b", "", "\\a.\\b");test_path (".c", ".", ".c", ".c", ".\\.c");#elsemessage ("**** NOT IMPLEMENTED ****");#endifprint ("Ok\n");exit (0);

⌨️ 快捷键说明

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