summaryrefslogtreecommitdiff
path: root/lib/cvtdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cvtdec.c')
-rw-r--r--lib/cvtdec.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/cvtdec.c b/lib/cvtdec.c
index 216f147..e95e910 100644
--- a/lib/cvtdec.c
+++ b/lib/cvtdec.c
@@ -26,18 +26,19 @@
**
** NOTE: assumes buf is large enough to hold the resulting string
*/
-int cvtdec( char *buf, int32_t value ) {
+int cvtdec(char *buf, int32_t value)
+{
char *bp = buf;
- if( value < 0 ) {
+ if (value < 0) {
*bp++ = '-';
value = -value;
}
- bp = cvtdec0( bp, value );
- *bp = '\0';
+ bp = cvtdec0(bp, value);
+ *bp = '\0';
- return( bp - buf );
+ return (bp - buf);
}
#endif