]> git.baikalelectronics.ru Git - uboot.git/commit
lib: Add a function to split a string into substrings
authorSimon Glass <sjg@chromium.org>
Tue, 17 Jan 2023 17:47:14 +0000 (10:47 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 23 Jan 2023 23:11:39 +0000 (18:11 -0500)
commit4ad1c630d6556b9b997cc10d8ba9a3fec2813288
treeed9bae7e827fd7b3db39fe675b1c3c541e61e4ba
parent179fe1e609746f3485382b656704f1f931e0c8f7
lib: Add a function to split a string into substrings

Some environment variables provide a space-separated list of strings. It
is easier to process these when they are broken out into an array of
strings.

Add a utility function to handle this.

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