It's looking very much like it will, but even if that wasn't the case, it's already widely in use and available in OS libc's and easy to copy, and it has been since OpenBSD first introduced it over 20 years ago. I also believe your performance claims are exaggerated.. and strlcpy does exactly what people want and expect in most scenarios.
saagarjha|4 years ago
asvitkine|4 years ago
This is similar to how strlen(x)>0 calls get optimized to *x by clang and likely other compilers.
unknown|4 years ago
[deleted]