162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci#ifndef _LIB_KSTRTOX_H 362306a36Sopenharmony_ci#define _LIB_KSTRTOX_H 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci#define KSTRTOX_OVERFLOW (1U << 31) 662306a36Sopenharmony_ciconst char *_parse_integer_fixup_radix(const char *s, unsigned int *base); 762306a36Sopenharmony_ciunsigned int _parse_integer_limit(const char *s, unsigned int base, unsigned long long *res, 862306a36Sopenharmony_ci size_t max_chars); 962306a36Sopenharmony_ciunsigned int _parse_integer(const char *s, unsigned int base, unsigned long long *res); 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci#endif 12