38#define is_space(c) ((c) == ' ' || (c) == '\t')
39#define is_digit(c) ((c) >= '0' && (c) <= '9')
41 ((c) >= 'a' && (c) <= 'f') || \
42 ((c) >= 'A' && (c) <= 'F'))
44#define is_lower(c) ((c) >= 'a' && (c) <= 'z')
45#define is_upper(c) ((c) >= 'A' && (c) <= 'Z')
46#define to_lower(c) (((c) >= 'A' && (c) <= 'Z') ? (c) - 'A'+'a' : (c))
49#define BASE_MAX ('i' - 'a' + 10 + 1)
51#define BASE_MAX ('z' - 'a' + 10 + 1)
57 register const char *
s;
65 register const char *
s;
86 }
else if (*
s ==
'-') {
95 if (*
s ==
'x' || *
s ==
'X') {
112 maxmult = maxval /
base;
113 for (; (
c = *
s) != 0;
s++) {
118 digit =
c -
'a' + 10;
120 digit =
c -
'A' + 10;
129 if (maxval -
ret < digit)
143 for (; (
c = *
s) != 0;
s++) {
148 digit =
c -
'a' + 10;
150 digit =
c -
'A' + 10;
char * astollb(const char *s, Llong *l, int base)
char * astoll(const char *s, Llong *l)
EXPORT int seterrno(int err)