Alp*_*neo 16 unix linux parsing
是否有Linux等效的Win32 API _splitpath函数?
细节:
void _splitpath (
const char *path, // Path Input
char *drive, // Drive : Output
char *dir, // Directory : Output
char *fname, // Filename : Output
char *ext // Extension : Output
);
Run Code Online (Sandbox Code Playgroud)
它将完整路径作为输入,并将驱动器,目录,文件名和扩展名作为输出.