summaryrefslogtreecommitdiff
path: root/xyo-networks/printf.c
diff options
context:
space:
mode:
Diffstat (limited to 'xyo-networks/printf.c')
-rw-r--r--xyo-networks/printf.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/xyo-networks/printf.c b/xyo-networks/printf.c
index 891ee1a..bef45ab 100644
--- a/xyo-networks/printf.c
+++ b/xyo-networks/printf.c
@@ -70,17 +70,17 @@ my_printf(char *format, ...)
char*
convert(unsigned int num, int base)
{
- static char rep[]= "0123456789ABCDEF";
- static char buffer[50];
- char *ptr;
-
- ptr = &buffer[49];
- *ptr = '\0';
-
- do {
- *--ptr = rep[num%base];
- num /= base;
- } while (num != 0);
-
- return(ptr);
+ static char rep[]= "0123456789ABCDEF";
+ static char buffer[50];
+ char *ptr;
+
+ ptr = &buffer[49];
+ *ptr = '\0';
+
+ do {
+ *--ptr = rep[num%base];
+ num /= base;
+ } while (num != 0);
+
+ return(ptr);
}