是否有 Win32 API _splitpath
函数的 Linux 等价物?
详情:
void _splitpath (
const char *path, // Path Input
char *drive, // Drive : Output
char *dir, // Directory : Output
char *fname, // Filename : Output
char *ext // Extension : Output
);
它以完整路径作为输入,并给出驱动器、目录、文件名和扩展名作为输出。
最佳答案
关于linux - Linux 中的_splitpath,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/613941/