xref: /kernel/linux/linux-5.10/lib/kstrtox.h (revision 8c2ecf20)
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef _LIB_KSTRTOX_H
38c2ecf20Sopenharmony_ci#define _LIB_KSTRTOX_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#define KSTRTOX_OVERFLOW	(1U << 31)
68c2ecf20Sopenharmony_ciconst char *_parse_integer_fixup_radix(const char *s, unsigned int *base);
78c2ecf20Sopenharmony_ciunsigned int _parse_integer_limit(const char *s, unsigned int base, unsigned long long *res,
88c2ecf20Sopenharmony_ci				  size_t max_chars);
98c2ecf20Sopenharmony_ciunsigned int _parse_integer(const char *s, unsigned int base, unsigned long long *res);
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#endif
12