3 ms·
Is there an alternate function which should be used instead of strncopy()?
by metadat 3y ago
Is there an alternate function which should be used instead of strncopy()?
- outsomnia 3y agoThere are various 'safer' versions of it, a common one is strlcpy() from bsd (which is in glibc etc) https://linux.die.net/man/3/strlcpy https://linux.die.net/man/3/strlcpy
- metadat 3y agoThat's right, I knew this at some point but haven't been doing much C lately. Thank you for the refresh!