summaryrefslogtreecommitdiffstats
path: root/lib/atoi/a2i.c
blob: 1b9037c3bd07489a4c1616c36ab53e660bb334f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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);