4 ms·
I agree. C++ solved this problem many years ago. The solution is standard and safe to use everywhere on all platforms. std::string
by ef47d35620c1 13y ago
I agree. C++ solved this problem many years ago. The solution is standard and safe to use everywhere on all platforms.
std::string
- nly 13y agoExactly, and it's actually MORE efficient than raw C string handling. Even in C the solution is to give up and use a string handling library that will do a reallocation on append, not risk truncation.