3 ms·
No mention of strlcpy (which was the safe replacement for strncpy in the stdlib about 15 years ago when I first heard of the former). Apparently strscpy handle
by WhyNotHugo 3mo ago
No mention of strlcpy (which was the safe replacement for strncpy in the stdlib about 15 years ago when I first heard of the former).
Apparently strscpy handles un-terminated input strings a bit better than strlcpy, but not scanning past the given length.