/cstring

A string library in C

Primary LanguageCMIT LicenseMIT

cstring

cstring MIT license CPP Version

GitHub watchers GitHub forks GitHub stars

workflow codecov

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 :

// 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);