sds icon indicating copy to clipboard operation
sds copied to clipboard

Simple Dynamic Strings library for C

Results 108 sds issues
Sort by recently updated
recently updated
newest added

It might be worth considering only allocating strings of a capacity that is a power of two (including header) to reduce memory fragmentations: A simple code snippet to round up...

I know that sds is a library solely intended for C but I happened to include the header "sds.h" in a C++ application, I don't want to go into details...

Optimized the use of vsnprintf

The tokens will contain empty sds element when the separator is at the beginning or the end of the unsplit string

the code have passed the sds-test

In many functions in file “sds.h”, the parameter “sds s” is dereferenced without checking if it is NULL. The same error is also present in some functions in file “sds.c”,...

I did some investigation on Redis source code 4.0 while I was doing my job. Something about sdshdr5 and sdshdr8 storage had raised my curiosity and something really confused me...

I've been investigating a nasty firmware crash that, until now, was a huge mystery. While debugging some new code that uses SDS, I single stepped into sdscmp(). There, I noticed...

Thank you for a fantastic library!! One minor possible issue: I am using sdssplitlen() to parse out the elements of a path+file string, as in: /DIR1/DIR2/this_isafile.txt