问题
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:
- path join - snprintf()
- filename stripping - dirname()
- etc. - basename(), realpath(), readlink(), glob(), fnmatch()...
来源:https://stackoverflow.com/questions/8900980/standard-or-free-posix-path-manipulation-c-library