Library: Make the string functions match the prototypes in stdlib.h
authorWill Sowerbutts <will@sowerbutts.com>
Sat, 3 Jan 2015 22:20:03 +0000 (22:20 +0000)
committerWill Sowerbutts <will@sowerbutts.com>
Sat, 3 Jan 2015 23:36:31 +0000 (23:36 +0000)
commit2b95e4eff9140e6ca0c387ef06eae97f153628f3
tree28ec38e77c50023c0e6b1d2179a957ff9ce9420d
parent96f9475d8657836a1ea3b947b9eb33afae7c819c
Library: Make the string functions match the prototypes in stdlib.h

Rename single-argument ltoa and ultoa to _ltoa and _ultoa.

Rename non-standard ltostr and ultostr to __ltostr and __ultostr, change
prototypes in stdlib.h to match expected arguments.

New implementations of ltoa, ultoa based on __ltostr, __ultostr.

Change vfprintf to call __ltostr and __ultostr.

Change _itoa to call _ltoa.

Now we have:

_ltoa, _ultoa, _itoa: Take a single argument (value).

__ltostr, __ultostr: Take two arguments (value, radix).

ltoa, ultoa: Take three arguments (value, buffer, radix). Calls either
__ltostr or __ultostr and copies the result into the user-provided
buffer.
Library/include/stdlib.h
Library/libs/ltoa.c
Library/libs/ltostr.c
Library/libs/vfprintf.c
Library/libs/xitoa.c