This is a lighweight C path manipulation library. It is currently compiled and tested under Linux, FreeBSD, Windows and MacOS. It supports UNIX and Windows path styles on all platforms. This is a fork of cwalk
Please have a look at the reference for detailed information. Some features this library includes:
- cross-platform on Linux, FreeBSD, Windows and MacOS
- simple interface - just one header
- combine paths together
- basename, dirname and extension parsing
- normalize and cleanup paths
- resolve and generate relative paths
- iterate segments of the path
- and more things...
Building, embedding and testing instructions are available in the documentation (it's very easy).
All the documentation is available in the the github page of this repository.