Re:Efficient string copying and concatenation in C
by amelius on Thursday September 12, 2019 @06:36PM
(#20957199)
One problem is that POSIX uses null-terminated strings everywhere.
[ Parent
| on HN ]
Re:Efficient string copying and concatenation in C
by colejohnson66 on Thursday September 12, 2019 @09:32PM
(#20958309)
So can’t you bill terminate your length prefixed string and pass a pointer to the data to POSIX. From what I understand, that’s how C++’s std::string works with ::c_str()