]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commitd69dd7e7ba944ff4e47ef77c41ee667a4c31979c
tree75c6a767cbdac256ad2b4433b5f08a0c97f45ff7
parent0b3f64c1a86dc35c19986a0f4fff3aea0d236f10
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