diff options
Diffstat (limited to 'lib/cvtdec0.c')
-rw-r--r-- | lib/cvtdec0.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/cvtdec0.c b/lib/cvtdec0.c index 87792e0..2f89ad2 100644 --- a/lib/cvtdec0.c +++ b/lib/cvtdec0.c @@ -26,16 +26,17 @@ ** ** NOTE: assumes buf is large enough to hold the resulting string */ -char *cvtdec0( char *buf, int value ) { +char *cvtdec0(char *buf, int value) +{ int quotient; quotient = value / 10; - if( quotient < 0 ) { + if (quotient < 0) { quotient = 214748364; value = 8; } - if( quotient != 0 ) { - buf = cvtdec0( buf, quotient ); + if (quotient != 0) { + buf = cvtdec0(buf, quotient); } *buf++ = value % 10 + '0'; return buf; |