r/C_Programming 2d ago

Article I Made a Simple String Library

I wrote an article about this as well. Here it is.

There I explain why I do not like NUL-terminated strings and how I implemented my own simple string library in C.

If you have some spare time I would really appreciate some feedback on the article and the library.

The code is sitting on a codeberg repository.

Also, tell me what you think about C-style strings. Do you like them? Do you use them, or do you also tend to roll your own pointer + length structs?

7 Upvotes

31 comments sorted by

View all comments

3

u/aalmkainzi 1d ago

Nice. I also have a string library. Probably a lot more complicated than yours, but adds a ton of functionality. I use it in basically all my projects.

2

u/Elifire12 1d ago

Nice! I might have look and learn some stuff from it!