]> git.baikalelectronics.ru Git - uboot.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)
commit59d5279e5aee54287329328370a687b647d03edb
tree9f1bdfd36187f27d0c70b9a981974391b61014bd
parent84e0f1ec105e3643e31304ce14a72240e21198ac
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