Hacker News new | ask | show | jobs
by gpderetta 1832 days ago
Thse days, in C++, this is routinely done in various std::string implementations (which are both null terminated and have a separate length). In fact the standard was updated to explicitly allow this.