buf
C string buffer library (by alcover)
SPString
A C string library that's designed with embedded development in mind. (by NJdevPro)
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
buf
Posts with mentions or reviews of buf.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-02-02.
- 450 points in 7 hours
-
Strings in C... tiring and unsafe. So I just made this lib. Am I doing it right, Reddit ?
The commit history is...very clean https://github.com/alcover/buf/commits/master
- Show HN: Buf – String buffer lib in C, using flex array
SPString
Posts with mentions or reviews of SPString.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-02-02.
-
Strings In C Tiring And Unsafe So I Just Made
I didn't know about SDS. I wrote this https://github.com/NJdevPro/SPString about 15 years ago though for an embedded electronic project.
-
Strings in C... tiring and unsafe. So I just made this lib. Am I doing it right, Reddit ?
I've developped my own string library 15 years ago and used it in payment terminals with rather limited memory. if you are so concerned with string size, 2 bytes is enough for 65535 characters, which is enough for nearly everything. You are never going to allocate 8 bytes/string, that's stupid. If you need to work on more than that (a text editor for instance) you are not going to use C strings anyway, but some more complicated data structure. If you think adding 2 bytes per string is a problem, you probably are optimizing the wrong way. Pascal strings have been used since the 1970s and AFAIK have never been a problem memory-wise. And that's normal since they took exactly the same size as C strings.
What are some alternatives?
When comparing buf and SPString you can also consider the following projects:
libds - A collection of data structures for C
MuditaOS - Mobile operating system based on FreeRTOS™ optimized for E Ink displays - developed for Mudita Pure minimalist phone
SDS - Simple Dynamic Strings library for C
cherryleaks - Library for debugging Dynamic Memory Allocation dynamically inside your application!
stb - stb single-file public domain libraries for C/C++
modern-embedded-programming-course - Companion repository to the "Modern Embedded Systems Programming" video course.
FPGA_Multimedia_Player - MSc Final Project