]> git.dujemihanovic.xyz Git - u-boot.git/commit
lib: Add memdup()
authorSimon Glass <sjg@chromium.org>
Sat, 25 Sep 2021 13:03:06 +0000 (07:03 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 8 Oct 2021 19:53:26 +0000 (15:53 -0400)
commit930c887e0fb88dcf1907f268960330c17999b5a3
tree9f1bdfd36187f27d0c70b9a981974391b61014bd
parent0caf37e973015255a3c5b9439ddb8c6aef1b5001
lib: Add memdup()

Add a function to duplicate a memory region, a little like strdup().

Signed-off-by: Simon Glass <sjg@chromium.org>
include/linux/string.h
lib/string.c
test/lib/string.c