diff options
author | Roland Gaudig <roland.gaudig@weidmueller.com> | 2021-07-23 12:29:18 +0000 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-07-27 14:50:47 -0400 |
commit | 0b016428a7be4518e4e880536d8ecd8f980fcfd8 (patch) | |
tree | 86185f7fca1212c57c2e64a0b15632b5cc9ff2e9 /include/vsprintf.h | |
parent | 55efa84d0f523b0609d6947d232c000824315a68 (diff) | |
download | u-boot-0b016428a7be4518e4e880536d8ecd8f980fcfd8.tar.gz u-boot-0b016428a7be4518e4e880536d8ecd8f980fcfd8.tar.bz2 u-boot-0b016428a7be4518e4e880536d8ecd8f980fcfd8.zip |
lib: strto: add simple_strtoll function
Add simple_strtoll function for converting a string containing digits
into a long long int value.
Signed-off-by: Roland Gaudig <roland.gaudig@weidmueller.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/vsprintf.h')
-rw-r--r-- | include/vsprintf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/vsprintf.h b/include/vsprintf.h index 2290083eba..4016de6677 100644 --- a/include/vsprintf.h +++ b/include/vsprintf.h @@ -41,6 +41,7 @@ int strict_strtoul(const char *cp, unsigned int base, unsigned long *res); unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base); long simple_strtol(const char *cp, char **endp, unsigned int base); +long long simple_strtoll(const char *cp, char **endp, unsigned int base); /** * trailing_strtol() - extract a trailing integer from a string |