Re:Massacring C Pointers
by saagarjha on Tuesday June 26, 2018 @03:06AM
(#17398487)
I was referring to std::string, which is what you should be using if you're handling textual data natively.
[ Parent
| on HN ]
The implementation of std::string is 99.999% of the time struct { char *s; size_t len; }, which has nothing to do with an actual type.
And it's even possible to use std::string as a buffer for binary data including NULs. I won't recommend it, but it works.