tmp0258
Re:Efficient string copying and concatenation in C
on Thursday September 12, 2019 @06:38PM (#20957216)
Seems to me that it would also prevent tools like the address sanitizer and valgrind from detecting some invalid memory accesses (corresponding to negative indexes). A "more conventional" string library [1] might be safer.
[1] for example: https://github.com/websnarf/bstrlib/blob/master/bstrlib.txt