https://github.com/martin-olivier/cstring
A string library in C
https://github.com/martin-olivier/cstring
c cstring string
Last synced: 4 months ago
JSON representation
A string library in C
- Host: GitHub
- URL: https://github.com/martin-olivier/cstring
- Owner: martin-olivier
- License: mit
- Created: 2021-05-25T16:36:43.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-01-12T22:56:26.000Z (over 4 years ago)
- Last Synced: 2025-03-28T19:44:40.926Z (over 1 year ago)
- Topics: c, cstring, string
- Language: C
- Homepage:
- Size: 41 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cstring
[](https://github.com/martin-olivier/cstring/releases/tag/v0.1)
[](https://github.com/martin-olivier/cstring/blob/main/LICENSE)

[](https://github.com/martin-olivier/cstring/watchers/)
[](https://github.com/martin-olivier/cstring/network/members/)
[](https://github.com/martin-olivier/cstring/stargazers/)
[](https://github.com/martin-olivier/cstring/actions/workflows/unit_tests.yml)
[](https://codecov.io/gh/martin-olivier/cstring)
The goal of this project is to recreate the `string` class of the C++ standard library in C. Syntax changes will be forced due to the absence of classes in C :
```c++
// in C++
std::string str = "Hello";
str.push_back(' ');
str += "World";
// in C with cstring
string str = string_create("Hello");
string_push_back(str, ' ');
string_cat(str, "World");
string_destroy(str);
```