News for hackers. Stuff that matters.
Re:Simple Dynamic Strings library for C, compatible with nul... by tsegratis on Tuesday December 03, 2019 @10:10AM (#21692873)
This alternative (by me) covers char, int, etc with a compiletime inlined generic api much the same way SDS does strings

https://tse.gratis/aArray/

aStr("string"); then aMap aFold aConcat, etc, but aAppend(&array,'\0') needs to be done manually if passing to standard str functions. This is so long* or whatever arrays can have the same interface

Re:Simple Dynamic Strings library for C, compatible with nul... by cmrdporcupine on Tuesday December 03, 2019 @07:55PM (#21698598)
Nice. I wrote myself up a quick C++ wrapper just now. Will play with this. Intend to use on embedded/bare-metal systems with no C stdlib, so will have to rip out the printfs and the like.
Re:Simple Dynamic Strings library for C, compatible with nul... by tsegratis on Wednesday December 04, 2019 @07:47PM (#21708877)
Wow, sounds neat! Look forward to seeing what you create