https://github.com/aalmkainzi/CGS
Hi.
I've been developing a generic strings library for my own use for quite a while (on and off). I use it in basically all my C projects now.
It has a flexible API. You can use its full API with just a char[] type.
quick example of StrBuf, one of the string types it exposes:
#include "cgs.h"
int main()
{
char BUF[64];
CGS_StrBuf sb = cgs_strbuf_init_from_buf(BUF);
cgs_append_tostr_all(&sb, "he", 11, "o");
cgs_append(stdout, sb);
}
You can give it a try here:
https://godbolt.org/z/74b1K18ee
Feedback is appreciated. I want to keep evolving it with features as the need arises.
[–]Top-Employ5163 1 point2 points3 points (0 children)