This commit is contained in:
rusefi 2017-03-05 14:17:48 -05:00
parent a0d0f8ac79
commit da7df362c6
1 changed files with 5 additions and 0 deletions

View File

@ -140,6 +140,9 @@ static char *ltoa_internal(char *p, long num, unsigned radix) {
return p; return p;
} }
/**
* @return pointer at the end zero symbol after the digits
*/
static char* itoa_signed(char *p, int num, unsigned radix) { static char* itoa_signed(char *p, int num, unsigned radix) {
if (num < 0) { if (num < 0) {
*p++ = '-'; *p++ = '-';
@ -154,6 +157,8 @@ static char* itoa_signed(char *p, int num, unsigned radix) {
/** /**
* Integer to string * Integer to string
*
* @return pointer at the end zero symbol after the digits
*/ */
char* itoa10(char *p, int num) { char* itoa10(char *p, int num) {
// todo: unit test // todo: unit test