antirez/sds
View on GitHub ↗ ★ 5,588 C
Simple Dynamic Strings library for C
67 mentions on Hacker News by 50 people: 7 stories, 60 comments · first 2014-02-06 · latest 2026-10-15
20082026
-
▲ 2
Simple Dynamic Strings library for Cstory by striking · 2018-10-03 · 0 comments
-
…their own array type that knows its length, and use it in their projects. See this for example: https://github.com/antirez/sds
comment by kahlonel · 2018-07-22 · in Conflating pointers with arrays: C's biggest mistake? (2009) -
…than a language I could use for simple general purpose programs(that are still as fast as C). [1] - https://github.com/antirez/sds EDIT : Grammar and reference
comment by reacharavindh · 2018-05-24 · in Ask HN: Why is there not a memory-safe C? -
Basically this: https://github.com/antirez/sds
comment by zzzcpan · 2018-03-15 · in Checked C: extension to C that adds static and dynamic checking -
Why don't people just use redis' sds ( https://github.com/antirez/sds ) string library instead of using str* functions? It's much safer and much higher level.
comment by aviggiano · 2017-04-29 · in strncpy() is not a safer strcpy() (2012) -
I'd argue sds meets that challenge, though not in the way you probably mean: https://github.com/antirez/sds/blob/master/README.md
comment by tyingq · 2017-04-29 · in strncpy() is not a safer strcpy() (2012) -
▲ 1
Simple Dynamic Stringsstory by Anilm3 · 2017-01-03 · 0 comments
-
Check out https://github.com/antirez/sds
comment by yawaramin · 2017-01-03 · in Ask HN: What “old” programming languages will you still be using in 2017? -
The SDS library ( http://github.com/antirez/sds ) is the middle ground between the two approaches. SDS strings are apparently C null-terminated strings, but before the pointer that you pass around there is metadata with the length. This…
comment by antirez · 2016-01-05 · in A defense of C's null-terminated strings -
You might look at the one from Redis: https://github.com/antirez/sds
comment by rch · 2015-08-27 · in Go enjoy Python3 -
We got that solved. https://github.com/antirez/sds
comment by nulltype · 2015-05-17 · in Kore: a fast web server for writing web apps in C -
…very talented. Not only because of Redis, which is great, but for other great tools too, e.g. sds: https://github.com/antirez/sds
comment by faragon · 2014-12-22 · in Salvatore Sanfilippo, the author of Redis: from Sicily with talent and passion -
…It doesn't do reference counting, but is helpful for many other string manipulation issues. [0] https://github.com/antirez/sds
comment by michaelmior · 2014-09-24 · in Adding strlcpy() to glibc -
I think you meant "va_end(ap);". Created a pull request for you: https://github.com/antirez/sds/pull/8
comment by fmela · 2014-02-06 · in Simple Dynamic Strings library for C -
Thanks unwind, this is much better indeed! Fixing. EDIT: Fixed here: https://github.com/antirez/sds/commit/c636fc6cd25e455a75dca2... Seems everything is still working but I need definitely more unit tests... Note everything is covered…
comment by antirez · 2014-02-06 · in Simple Dynamic Strings library for C -
▲ 214
Simple Dynamic Strings library for Cstory by antirez · 2014-02-06 · 127 comments