LinuxKPI: string.h implement memcpy_and_pad()
authorBjoern A. Zeeb <bz@FreeBSD.org>
Mon, 31 Oct 2022 22:17:00 +0000 (22:17 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Mon, 7 Nov 2022 12:49:01 +0000 (12:49 +0000)
commit6a647ae51409cd56cc4a78d0a64ba3ff3aa3aac0
tree14bff98ad4c0afb9dcbf12bc07e9ba91552ae96b
parent4a67f1df8bdf70bc4a54ae212563dedfe4546e8d
LinuxKPI: string.h implement memcpy_and_pad()

Add a memcpy variant which takes length of source and destination
buffers and a padding character in case there is free space in the
destination.  This is used by a wireless driver.

MFC after: 3 days
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D37226
sys/compat/linuxkpi/common/include/linux/string.h