s/extern inline/static ATTRIBUTE_ALWAYS_INLINE/g

xstrtou: disallow leading '+'
This commit is contained in:
Denis Vlasenko
2006-12-16 23:48:13 +00:00
parent 3469c185e5
commit a597aaddfa
8 changed files with 41 additions and 42 deletions

View File

@ -34,7 +34,8 @@
#endif
#if UINT_MAX != ULONG_MAX
extern inline unsigned bb_strtoui(const char *str, char **end, int b)
static ATTRIBUTE_ALWAYS_INLINE
unsigned bb_strtoui(const char *str, char **end, int b)
{
unsigned long v = strtoul(str, end, b);
if (v > UINT_MAX) {