linux - Linux 中的_splitpath

标签 linux unix parsing

是否有 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/

相关文章:

unix - pstree 中进程周围的花括号是什么意思?

python - 从任意 css 文件中获取特定类的所有 css 属性

scala - 如何过滤解析器组合器中的保留字?

字符分割和解析

linux - 在 Debian 服务器上通过 ssh 连接到 Git 用户时没有(自定义)答案

c - 如何调试生成格式错误的可执行文件的实验性工具链

Windows 和 Linux 上的 PHP_EOL

c - 如何在C、linux中为FTP客户端启动主动模式

regex - 根据第二个文本文件从文本文件中删除重复项

c - Unix 中的信号处理