diff options
Diffstat (limited to 'src/userspace/mlibc/stdlib/itoa.c')
-rw-r--r-- | src/userspace/mlibc/stdlib/itoa.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/userspace/mlibc/stdlib/itoa.c b/src/userspace/mlibc/stdlib/itoa.c index 55c1383..567824f 100644 --- a/src/userspace/mlibc/stdlib/itoa.c +++ b/src/userspace/mlibc/stdlib/itoa.c @@ -1,9 +1,8 @@ #include <stdint.h> #include <mlibc/math.h> -#include <mlibc/string.h> #include <mlibc/stdlib.h> -static const char __ITOA_TABLE[] = "0123456789"; +static const char ITOA_TABLE[] = "0123456789"; char *itoa(int n) { @@ -28,7 +27,7 @@ char *itoa(int n) for (int i = 0; i < sz; i++) { int digit = (n % pow(10, i + 1)) / pow(10, i); - ret[i] = __ITOA_TABLE[digit]; + ret[i] = ITOA_TABLE[digit]; } ret[sz] = 0; |