Aljoscha Lautenbach <[email protected]> writes: > A simple grep -r 'size_t strlcpy' in the source directory of the > kernel shows that the function is indeed defined for the kernel in > "$source/include/linux/string.h" and is implemented in > "$source/lib/string.c".
That unfortunately doesn't help unless you're writing kernel modules. That's an implementation inside the kernel only for code running inside the kernel; it isn't available to normal programs. I just provide replacement implementations of strlcpy and strlcat with all of the software I write that ends up needing to use it. -- Russ Allbery ([email protected]) <http://www.eyrie.org/~eagle/> -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

