From 4742b80bf27c9befce14546210ce89667e9d1169 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 29 Jun 2018 20:13:35 -0700 Subject: Fix indentation and white space --- xyo-networks/printf.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'xyo-networks') 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); } -- cgit v1.2.3