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

📄 root.txt

📁 Dos6.0
💻 TXT
字号:
SUMMARY rootpath

#include <tools.h>

int rootpath(pstrSrc, pstrDest)
char *pstrSrc, *pstrDest;


DESCRIPTION

rootpath generates a path to a file from the root.  *pstrDest is assumed to
be large enough to hold the result.  The source may specify a drive other
than the current drive.

RETURN VALUE

Returns zero if it succeeds else non-zero.

IMPLEMENTATION


SEE ALSO


NOTE


EXAMPLE

#include <tools.h>

main(c, argv)
int c;
char *argv[];
{
    char str[MAXPATHLEN];

    rootpath("temp.txt",     str); printf("%s\n", str);
    rootpath("..\\temp.txt", str); printf("%s\n", str);
    rootpath("b:temp.txt",   str); printf("%s\n", str);
}

⌨️ 快捷键说明

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