4 ms·
It's not, though. That's the point: the interface it provides is not very good. The API surface for "I have a string here and I want you to put it there but onl
by saagarjha 2y ago
It's not, though. That's the point: the interface it provides is not very good. The API surface for "I have a string here and I want you to put it there but only the first n bytes" is well-defined and can be done in a much better way than what strlcpy does.