From c5b01668516cdc6bfd1434dc42e6e66cd4ca28cd Mon Sep 17 00:00:00 2001 From: Gabriel Voelkner Date: Tue, 5 May 2026 09:09:06 +0200 Subject: [PATCH] style: apply normi --- ft_btoa.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ft_btoa.c b/ft_btoa.c index e792603..be6e809 100644 --- a/ft_btoa.c +++ b/ft_btoa.c @@ -12,9 +12,9 @@ #include "ft_printf.h" -static unsigned int calc_digits(unsigned int num, int base) +static unsigned int calc_digits(unsigned int num, int base) { - int count; + int count; count = 0; while (num > 0) @@ -25,12 +25,12 @@ static unsigned int calc_digits(unsigned int num, int base) return (count); } -char *ft_btoa(int num, int base) +char *ft_btoa(int num, int base) { - int curr; - char *res; - int is_neg; - int res_size; + int curr; + char *res; + int is_neg; + int res_size; curr = 0; is_neg = 0; @@ -49,7 +49,7 @@ char *ft_btoa(int num, int base) curr = num % base; if (curr > 9) curr = (curr % 10) + 'A'; - else + else curr += '0'; res[(res_size - 1)] = curr; num /= base; -- 2.51.2