Aljoscha Lautenbach <aljoscha.lautenb...@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 (r...@debian.org)               <http://www.eyrie.org/~eagle/>


-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to