3 ms·
Probably not much: http://en.wikipedia.org/wiki/Strlcpy#Criticism http://en.wikipedia.org/wiki/Strlcpy#Criticism
by jazzyb 16y ago
Probably not much:
http://en.wikipedia.org/wiki/Strlcpy#Criticism http://en.wikipedia.org/wiki/Strlcpy#Criticism
- anon1385 16y agoFortunately, Ulrich Drepper doesn't work on the kernel. Otherwise we would all have to pay money to open bug reports[1] His preferred solution is to use the highly portable *((char *) mempcpy (dst, src, n)) = '\0'; make of that what you will… [1] http://sourceware.org/bugzilla/show_bug.cgi?id=4980 http://sourceware.org/bugzilla/show_bug.cgi?id=4980