2 ms·
Meanwhile, strlcpy() returns the length of the source. So if you just want to copy a part of the source, or you're not sure if the source is terminated past the
by ploxiln 12y ago
Meanwhile, strlcpy() returns the length of the source. So if you just want to copy a part of the source, or you're not sure if the source is terminated past the length you want to copy, it's either wasteful or dangerous.
- wahern 12y agoThose are completely made-up objections. strlcpy also fails to fix me coffee in the morning, ergo it should be avoided.