diff options
author | Ben Sima <ben@bsima.me> | 2018-06-29 20:13:35 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2018-06-29 20:14:09 -0700 |
commit | 4742b80bf27c9befce14546210ce89667e9d1169 (patch) | |
tree | 17470dd4667298e5c19001e72cadd24bbb979544 | |
parent | 7e86b3adb283b0cf308e97488e11e29b0e248ea5 (diff) |
Fix indentation and white space
-rw-r--r-- | xyo-networks/printf.c | 26 |
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); } |