websnarf/bstrlib
View on GitHub ↗ ★ 570 C
The Better String Library
6 mentions on Hacker News by 6 people: 0 stories, 6 comments · first 2016-01-05 · latest 2024-07-16
20082026
-
…problematic and computationally inefficient in many (if not most) use cases. The solution is here: https://github.com/websnarf/bstrlib
comment by jqpabc123 · 2024-07-16 · in The Sad State of C Strings (2021) -
Wouldn't https://github.com/websnarf/bstrlib be a better URL?
comment by gnabgib · 2022-12-21 · in Better String Library (2015) -
…that expects NUL-terminated strings. And there are libraries that do that, like https://github.com/websnarf/bstrlib (Doc and rationale: https://raw.githubusercontent.com/websnarf/bstrlib/master/bs... ). I've never seen them used in the wi
comment by Aissen · 2022-12-20 · in Implementing ‘strlen’ using SVE -
…to negative indexes). A "more conventional" string library [1] might be safer. [1] for example: https://github.com/websnarf/bstrlib/blob/master/bstrlib.txt
comment by tmp0258 · 2019-09-12 · in Efficient string copying and concatenation in C -
Here's a timely example of the behavior I'm referring to: https://github.com/websnarf/bstrlib/issues/8 I'd be happy to concede that this is not good programming practice, but I do not accept that the compiler is doing us a favor by…
comment by nkurz · 2016-01-05 · in A perspective on friendly C -
…had to check what happens using a real compiler using realistic compiler options (gcc-4.9.2 -O2): https://github.com/websnarf/bstrlib/issues/8
comment by fhars · 2016-01-05 · in A defense of C's null-terminated strings