Standard (or free) POSIX path manipulation C libra

2020-05-27 13:16发布

Is there any standard (or widely used) simple POSIX path manipulation library for C (path join, filename stripping, etc.) ?

Actually, because I'm mostly working under Windows, I currently use 'shlwapi' path functions.

Is there any equivalent set of functions available for POSIX paths?

1条回答
Viruses.
2楼-- · 2020-05-27 13:36
  • path join - snprintf()
  • filename stripping - dirname()
  • etc. - basename(), realpath(), readlink(), glob(), fnmatch()...
查看更多
登录 后发表回答