3 ms·
If the return value of strlcpy isn't used, the compiler can optimize the extra inefficiency away. (I don't know if any do, though.) This is similar to how strl
by asvitkine 5y ago
If the return value of strlcpy isn't used, the compiler can optimize the extra inefficiency away. (I don't know if any do, though.)
This is similar to how strlen(x)>0 calls get optimized to *x by clang and likely other compilers.