34 |
#endif |
#endif |
35 |
|
|
36 |
#if UINT_MAX != ULONG_MAX |
#if UINT_MAX != ULONG_MAX |
37 |
static ATTRIBUTE_ALWAYS_INLINE |
static ALWAYS_INLINE |
38 |
unsigned bb_strtoui(const char *str, char **end, int b) |
unsigned bb_strtoui(const char *str, char **end, int b) |
39 |
{ |
{ |
40 |
unsigned long v = strtoul(str, end, b); |
unsigned long v = strtoul(str, end, b); |
59 |
|
|
60 |
/* A few special cases */ |
/* A few special cases */ |
61 |
|
|
62 |
int xatoi_u(const char *numstr) |
int FAST_FUNC xatoi_u(const char *numstr) |
63 |
{ |
{ |
64 |
return xatou_range(numstr, 0, INT_MAX); |
return xatou_range(numstr, 0, INT_MAX); |
65 |
} |
} |
66 |
|
|
67 |
uint16_t xatou16(const char *numstr) |
uint16_t FAST_FUNC xatou16(const char *numstr) |
68 |
{ |
{ |
69 |
return xatou_range(numstr, 0, 0xffff); |
return xatou_range(numstr, 0, 0xffff); |
70 |
} |
} |