News for hackers. Stuff that matters.
Re:I'm Not a Fan of Strlcpy(3) by dark-star on Monday July 15, 2024 @09:45AM (#40967851)
I mean just use C++ w/ std::string why is it difficult?
Re:I'm Not a Fan of Strlcpy(3) by smallstepforman on Monday July 15, 2024 @11:05AM (#40968509)
std::u8string
Re:I'm Not a Fan of Strlcpy(3) by account42 on Monday July 15, 2024 @11:31AM (#40968752)
No, std::string.
Re:I'm Not a Fan of Strlcpy(3) by bluGill on Monday July 15, 2024 @12:57PM (#40969541)
Most C programs compile and work correctly compiled as C++. The exceptions are often places you shouldn't write code like that, sometimes even outright bugs that C++'s stricter type system caught for you.