diff --git a/system/stringhelpers.c b/system/stringhelpers.c --- a/system/stringhelpers.c +++ b/system/stringhelpers.c @@ -1,8 +1,9 @@ #include +char const digit[] = "0123456789"; + char* zitoa(int16_t i, char b[]){ - char const digit[] = "0123456789"; char* p = b; if(i<0){ *p++ = '-'; @@ -22,7 +23,6 @@ char* zitoa(int16_t i, char b[]){ } char* itoa_fp(int16_t i, uint8_t frac, char b[]){ - char const digit[] = "0123456789"; // set p to beginning of char array char* p = b;