diff options
Diffstat (limited to '3.4.c')
-rw-r--r-- | 3.4.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -38,7 +38,7 @@ itoa(int n, char str[]) { int sign, i; - /* to include the most -ve int*/ + /* to include the most -ve int */ n = ((sign = n) < 0) ? -(n+1) : n-1; i = 0; @@ -49,6 +49,7 @@ itoa(int n, char str[]) if (sign <0) str[i++] = '-'; + /* part of "to include the most -ve int" */ str[0] += 1; str[i] = '\0'; |