vsprintf: expose strtoul function
This function is a wrapper around simple_strtoul, and allows us to expose it, replacing the one in bionic.c. Signed-off-by: Sean Cross <xobs@kosagi.com>
This commit is contained in:
parent
2e3dfee040
commit
58d7c3b17a
2 changed files with 7 additions and 2 deletions
|
@ -87,6 +87,11 @@ int strict_strtoul(const char *cp, unsigned int base, unsigned long *res)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
unsigned long strtoul(const char *cp, char **endp, unsigned int base)
|
||||
{
|
||||
return simple_strtoul(cp, endp, base);
|
||||
}
|
||||
|
||||
long simple_strtol(const char *cp,char **endp,unsigned int base)
|
||||
{
|
||||
if(*cp=='-')
|
||||
|
@ -661,7 +666,7 @@ static int vsnprintf_internal(char *buf, size_t size, const char *fmt,
|
|||
} else if (qualifier == 'Z' || qualifier == 'z') {
|
||||
num = va_arg(args, size_t);
|
||||
} else if (qualifier == 't') {
|
||||
num = va_arg(args, ptrdiff_t);
|
||||
num = va_arg(args, void *);
|
||||
} else if (qualifier == 'h') {
|
||||
num = (unsigned short) va_arg(args, int);
|
||||
if (flags & SIGN)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue