Standard (or free) POSIX path manipulation C library
-
17-04-2021 - |
Question
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?
Solution
- path join - snprintf()
- filename stripping - dirname()
- etc. - basename(), realpath(), readlink(), glob(), fnmatch()...
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow