xref: /linux/lib/kstrtox.h (revision 900fdc45)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
21dff46d6SAlexey Dobriyan #ifndef _LIB_KSTRTOX_H
31dff46d6SAlexey Dobriyan #define _LIB_KSTRTOX_H
41dff46d6SAlexey Dobriyan 
51dff46d6SAlexey Dobriyan #define KSTRTOX_OVERFLOW	(1U << 31)
61dff46d6SAlexey Dobriyan const char *_parse_integer_fixup_radix(const char *s, unsigned int *base);
7*900fdc45SRichard Fitzgerald unsigned int _parse_integer_limit(const char *s, unsigned int base, unsigned long long *res,
8*900fdc45SRichard Fitzgerald 				  size_t max_chars);
91dff46d6SAlexey Dobriyan unsigned int _parse_integer(const char *s, unsigned int base, unsigned long long *res);
101dff46d6SAlexey Dobriyan 
111dff46d6SAlexey Dobriyan #endif
12