https://github.com/lygstate/cpathjoin
Path library for C/C++. Cross-Platform for Linux, FreeBSD, Windows, Baremetal and MacOS. Supports UNIX and Windows path styles on those platforms. And O(N) time complexity. Compatible with nodejs path module.
https://github.com/lygstate/cpathjoin
baremetal c cpp cross-platform freebsd ios join linear linux macos nodejs normalize path path-manipulation path-module realpath relative time unc windows
Last synced: about 2 months ago
JSON representation
Path library for C/C++. Cross-Platform for Linux, FreeBSD, Windows, Baremetal and MacOS. Supports UNIX and Windows path styles on those platforms. And O(N) time complexity. Compatible with nodejs path module.
- Host: GitHub
- URL: https://github.com/lygstate/cpathjoin
- Owner: lygstate
- License: mit
- Created: 2024-11-22T19:27:46.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-12-19T08:44:29.000Z (5 months ago)
- Last Synced: 2025-02-04T18:52:10.258Z (4 months ago)
- Topics: baremetal, c, cpp, cross-platform, freebsd, ios, join, linear, linux, macos, nodejs, normalize, path, path-manipulation, path-module, realpath, relative, time, unc, windows
- Language: C
- Homepage:
- Size: 395 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# libcpj - path join library for C/C++
[](https://github.com/lygstate/cpathjoin/actions/workflows/build-linux.yml)
[](https://github.com/lygstate/cpathjoin/actions/workflows/build-freebsd.yml)
[](https://github.com/lygstate/cpathjoin/actions/workflows/build-macos.yml)
[](https://github.com/lygstate/cpathjoin/actions/workflows/build-win.yml)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](https://github.com/likle/cwalk)## Features
Please have a look at the
**[reference](https://lygstate.github.io/cpathjoin/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
**[Building](https://lygstate.github.io/cpathjoin/build.html)**,
**[embedding](https://lygstate.github.io/cpathjoin/embed.html)** and
**[testing](https://lygstate.github.io/cpathjoin/build.html)** instructions are
available in the documentation (it's very easy).## Docs
All the documentation is available in the
**[the github page](https://lygstate.github.io/cpathjoin/)** of this repository.