diff options
Diffstat (limited to 'lib/atoi/a2i.c')
-rw-r--r-- | lib/atoi/a2i.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/atoi/a2i.c b/lib/atoi/a2i.c new file mode 100644 index 00000000..1b9037c3 --- /dev/null +++ b/lib/atoi/a2i.c @@ -0,0 +1,13 @@ +// SPDX-FileCopyrightText: 2023-2024, Alejandro Colomar <alx@kernel.org> +// SPDX-License-Identifier: BSD-3-Clause + + +#include <config.h> + +#include "atoi/a2i.h" + + +extern inline int a2sl(long *restrict n, const char *s, + char **restrict endp, int base, long min, long max); +extern inline int a2ul(unsigned long *restrict n, const char *s, + char **restrict endp, int base, unsigned long min, unsigned long max); |