2 ms·
Oops, yes, I forgot to add the "-1" to the end of that. The blog post has the right invariant: > this function will copy the smaller of strlen(src) or len - 1
by saagarjha 5y ago
Oops, yes, I forgot to add the "-1" to the end of that. The blog post has the right invariant:
> this function will copy the smaller of strlen(src) or len - 1 bytes from src to dst