4 ms·That's what strlcpy() is for.by shawxe 7y agoThat's what strlcpy() is for.saagarjha 7y agoOr strncpy, if you'd like to stay within the standard and your strings are small.