Re: mimelib 1.1.2 packages: strlcpy/strlcat vs. strcpy/strcat
Aljoscha Lautenbach <aljoscha.lautenbach@gmail.com> 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 (rra@debian.org) <http://www.eyrie.org/~eagle/>
Reply to: