]> git.dujemihanovic.xyz Git - u-boot.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)
commit3e96ed44e8c5b63bd0cef1e263e7991ac16c21e3
treeed9bae7e827fd7b3db39fe675b1c3c541e61e4ba
parenta0fb9de60d2fe64107ebadc85e73000e84a963ea
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