3 ms·
or sizeof(dst), and not forgetting dst[sizeof(dst)-1]='\0';
by Luyt 16y ago
or sizeof(dst), and not forgetting dst[sizeof(dst)-1]='\0';
- wladimir 16y agoThat's why strlcpy is safer than strncpy, it makes sure that the destination string will always be zero-terminated.