blob: 158c400ca8658e0d44c195a80a5628edb507ca5e [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Alexey Dobriyan1dff46d2011-10-31 17:12:28 -07002#ifndef _LIB_KSTRTOX_H
3#define _LIB_KSTRTOX_H
4
5#define KSTRTOX_OVERFLOW (1U << 31)
6const char *_parse_integer_fixup_radix(const char *s, unsigned int *base);
Richard Fitzgerald900fdc42021-05-14 17:12:04 +01007unsigned int _parse_integer_limit(const char *s, unsigned int base, unsigned long long *res,
8 size_t max_chars);
Alexey Dobriyan1dff46d2011-10-31 17:12:28 -07009unsigned int _parse_integer(const char *s, unsigned int base, unsigned long long *res);
10
11#endif