]> git.ipfire.org Git - thirdparty/u-boot.git/commit - lib/strto.c
lib: Add a way to find the postiion of a trailing number
authorSimon Glass <sjg@chromium.org>
Mon, 25 Apr 2022 05:30:58 +0000 (23:30 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 25 Apr 2022 14:00:03 +0000 (10:00 -0400)
commit8565efd509236dc7d4e766de39edae2cefb10057
tree75c6a767cbdac256ad2b4433b5f08a0c97f45ff7
parentd667a0d8f413d7278f912aa4e671bc56d28b25f2
lib: Add a way to find the postiion of a trailing number

At present it is not possible to find out which part of the string is the
number part and which is before it. Add a new variant which provides this
feature, so we can separate the two in the caller.

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